00:00:00 --- log: started forth/19.10.17 00:06:18 --- quit: dave0 (Quit: dave's not here) 00:23:38 --- quit: dys (Ping timeout: 268 seconds) 00:25:59 --- join: DKordic joined #forth 00:38:47 --- join: mtsd joined #forth 00:52:33 --- join: dys joined #forth 00:52:52 --- join: xek joined #forth 00:55:01 --- join: xek_ joined #forth 00:57:53 --- quit: xek (Ping timeout: 265 seconds) 01:10:51 --- quit: warriors (Quit: Connection closed for inactivity) 01:12:00 --- join: xek__ joined #forth 01:15:26 --- quit: xek_ (Ping timeout: 268 seconds) 01:35:35 --- quit: ryke (Ping timeout: 265 seconds) 01:44:19 --- quit: WickedShell (Remote host closed the connection) 02:25:15 --- quit: mtsd (Ping timeout: 245 seconds) 02:43:01 --- join: dddddd joined #forth 03:08:06 --- join: mtsd joined #forth 03:43:15 --- join: iyzsong joined #forth 03:43:33 --- nick: DKordic -> | 03:44:02 --- nick: | -> Guest21071 04:01:40 --- quit: rdrop-exit (Quit: Lost terminal) 04:05:06 --- nick: Guest21071 -> [F|EXPR] 04:19:31 --- quit: cartwright (Ping timeout: 260 seconds) 04:34:20 --- quit: dddddd (Remote host closed the connection) 05:34:12 --- quit: inode (Quit: ) 06:43:01 --- join: warriors joined #forth 06:46:08 --- quit: mtsd (Quit: Leaving) 07:26:04 --- quit: iyzsong (Ping timeout: 246 seconds) 07:45:40 --- quit: tabemann (Ping timeout: 245 seconds) 08:05:18 --- join: inode joined #forth 08:14:43 --- join: ryke joined #forth 09:36:26 --- quit: dys (Ping timeout: 250 seconds) 09:42:40 --- join: dddddd joined #forth 10:43:48 --- join: WickedShell joined #forth 12:36:13 --- join: Croran joined #forth 12:37:14 is there a way to define a string 'type' so that when string variables are 'called', they place both their address and their length on the stack (instead of having to use 'count')? 12:51:37 i thought that's what " traditionally did in forth 13:01:58 I'm just going through the 'And so forth..' tutorial. Section 3.8. 13:02:03 https://thebeez.home.xs4all.nl/ForthPrimer/Forth_primer.html#toc-Section-2.1 13:02:24 err here's a direct link 13:02:24 https://thebeez.home.xs4all.nl/ForthPrimer/Forth_primer.html#toc-Section-3.8 13:02:54 every time they want to print the the string they have to call 'count' before 'type' 13:04:09 yeah, s" Hello!" in that example pushed an address and a length 13:04:27 which is why the place word has to work with two cells (lots of "over over" and ">r >r", etc.) 13:06:13 so your problem is that greeting didn't store and push a length 13:07:02 I'm talking about this line 13:07:03 greeting count type cr 13:07:17 he has to use the 'count' word to get the address and length 13:08:25 i want to use my string variable without having to use the 'count' word 13:08:58 eg. greeting type cr 13:19:24 --- quit: gravicappa (Ping timeout: 268 seconds) 13:19:59 yes, so like i said, it sounds like you just want greeting to store and push a length 13:23:16 : str ( a n ) create dup cell+ allot dup , place does> dup cell+ swap @ ; 13:23:24 s" Hello!" str greeting 13:23:33 greeting type cr 13:46:02 doesn't work for me. i think because place requires the address of the newly 'created' variable and it isn't being given that. 13:46:48 place requires two arguments: an address and a length 13:47:01 s" Hello!" greeting place \ set string to ’Hello!’ 13:47:12 looks like it's being given 3 arguments. an address, a length, and another address. 13:47:21 oh sorry, you're right. 13:47:33 : str ( a n ) create dup cell+ allot dup , here place does> dup cell+ swap @ ; 13:47:45 thanks. first time i've seen 'here' :) 13:48:46 here is the address in the dictionary pointer 13:49:01 or data pointer or whatever the D stands for in DP 13:49:17 double, i thought. 13:49:20 ;) 13:49:24 or dick pic 13:54:06 hmm... something still wrong. i think the string starts at 1 'chr' from the address as opposed to 1 cell 13:54:28 and i'm not getting a length back, just an address and a big negative number 13:54:54 the big negative number is probably the result of me trampling the length field 13:54:55 1 'char' that is 13:55:44 not sure why that is though 13:55:56 i don't have a forth installed atm where i can test it 13:56:30 well the 'cell+' is what i'm wondering about. shouldn't there be a 1 chars + instead or something? 13:57:06 i wanted to allot the length of the string plus the size of a cell 13:57:08 https://repl.it/languages/forth 13:58:12 doesn't include place in the base library 13:58:13 : place over over >r >r char+ swap chars cmove r> r> c! ; 14:01:58 huh. in that implementation cell is 1 14:04:55 and for some reason @ likes to go off into never never land 14:06:35 --- quit: WickedShell (Remote host closed the connection) 14:35:30 --- quit: inode (Quit: ) 15:28:25 --- quit: ryke (Ping timeout: 240 seconds) 15:37:57 --- join: jedb_ joined #forth 15:40:51 --- quit: jedb__ (Ping timeout: 276 seconds) 15:55:31 --- join: dave0 joined #forth 16:01:55 --- quit: xek__ (Ping timeout: 245 seconds) 16:49:08 --- join: ryke joined #forth 17:30:29 --- quit: warriors (Quit: Connection closed for inactivity) 18:11:22 --- join: rdrop-exit joined #forth 18:27:39 --- quit: X-Scale (Ping timeout: 240 seconds) 18:33:46 --- quit: dave0 (Quit: dave's not here) 18:36:46 --- join: X-Scale joined #forth 19:10:41 c[] 19:11:09 morning Zen Forth Master! 19:11:38 good morning to you Master Technician! 19:12:28 why thank you good sir! 19:12:51 how goes it? 19:13:06 Ive been having fun using GDB to verify some assembly before I try it in a larger program 19:14:07 i have never used GDB much, but I'm getting better at it now having used it with cortex-m0 and M3 19:15:05 how about yourself, still taking the locals to the cleaners playing poker ? 19:15:15 :) 19:16:00 hardly anything the past week 19:16:22 started writing a manual using LaTeX 19:17:02 Ah yes, I recall, linking LaTeX ? 19:17:23 linking? 19:22:41 --- join: warriors joined #forth 20:03:45 oops sorry "liking" 20:07:57 --- join: dave0 joined #forth 20:09:40 I like it, much better than troff 20:10:56 tons to learn 20:11:10 --- quit: dne (Ping timeout: 246 seconds) 20:11:26 --- join: dne joined #forth 20:27:19 --- join: tabemann joined #forth 20:38:50 --- quit: tp (Read error: Connection reset by peer) 20:38:51 --- join: tpbsd joined #forth 20:50:15 --- quit: APic (Ping timeout: 276 seconds) 20:54:01 --- join: APic joined #forth 21:12:22 --- quit: koisoke (Ping timeout: 250 seconds) 21:31:49 --- join: gravicappa joined #forth 21:48:26 --- nick: tpbsd -> tp 22:20:53 --- join: jedb__ joined #forth 22:23:33 --- quit: jedb_ (Ping timeout: 265 seconds) 22:30:03 --- quit: warriors () 23:09:57 --- quit: gravicappa (Ping timeout: 265 seconds) 23:14:07 --- join: patrickg joined #forth 23:14:22 --- nick: patrickg -> patrickg_ 23:14:30 --- nick: patrickg_ -> patrickg 23:59:59 --- log: ended forth/19.10.17