[REBOL] Parser seems to have bug - different results on multiple calls. Re:

2000-07-03 Thread dan
not bad...for whatever it's worth, it opens up the Gateway catalog file at the top of my screen behind the taskbar, so I can't easily turn it off...may be a unique problem with my system. ds At 04:25 PM 7/1/00 +1000, you wrote: Howdy, I've been having trouble with strange results in the

[REBOL] Parser seems to have bug - different results on multiple calls. Re:

2000-07-01 Thread bhandley
How embarassing. Sent the wrong code. Here is the actual problem code. only-string: func[ s [any-string! none!] ][ either s [s][{}]] quoted-data-rule: [ (cell-data: {} print "--init-line--") ; This seems to be ignored on subsequent calls of parse. {"} copy data to {"} {"}

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(2)

2000-07-01 Thread allenk
Hi Brett, change cell-data: {} to cell-data: copy {} This ensures you get a new empty string each call. Cheers, Allen K - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 01, 2000 4:48 PM Subject: [REBOL] Parser seems to have bug - different

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(4)

2000-07-01 Thread Al . Bri
But, now I'm confused. Why is that different to what I had? Or, why didn't I get a new empty string each call previously? It's one of the differences Rebol has with other languages. When you assign a string to a word, like this: s: "" You're literally assigning 's to the string just

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(5)

2000-07-01 Thread bhandley
The colon ":" is the set-word operator, which is literally: set the word to the left to point to the right. Which is not quite assignment in conventional languages. I hope that helps! I think it will.hopefully. :\ Thanks. Brett.

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(4)

2000-07-01 Thread ingo
Hi Brett, maybe this little func 'll show you what's happening ... test: func [] [ s1: "" s2: copy "" append s1 "Hi, I'm changed" append s2 "I'm not ..." source test ] test test: func [][ s1: "Hi, I'm changed" s2: copy "" append s1 "Hi, I'm changed"

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(5)

2000-07-01 Thread bhandley
picks jaw off ground/ Thanks Ingo, I'll just have to go away and reassemble some brain patterns... Brett. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 02, 2000 12:48 AM Subject: [REBOL] Parser seems to have bug - different results on multiple

[REBOL] Parser seems to have bug - different results on multiple calls. Re:(5)

2000-07-01 Thread bhandley
Some time back. Brian Hawley referred to a discussion on Contexts. Which at first I could not find. However spurred on by my misunderstanding of what Rebol is doing, I made a renewed attempt to find the discussion and was successful. See the thread "Contexts, and related ideas" in...