Bug in To?
[1/5] from: pwawood::mango::net::my at: 28-Mar-2005 23:11
I found that "to" doesn't handle << >> properly if entered directly
from the console :
>> to tag! "<test>"
== <<test>>
>> to string! <<test>>
** Script Error: Operator is missing an argument
** Near: to string! <<test> >
but it does in a variable :
>> t: "<test>"
== "<test>"
>> t: to tag! t
== <<test>>
>> t: to string! t
== "<test>"
Is this a bug or have I overlooked something?
Regards
Peter
[2/5] from: apwing:zonnet:nl at: 28-Mar-2005 17:38
Peter WA Wood wrote:
>I found that "to" doesn't handle << >> properly if entered directly
>from the console :
<<quoted lines omitted: 13>>
>Regards
>Peter
I think REBOL gets confused whether it's all about a tag or about
comparison or both.
When typing
>> <<tag>>
REBOL shows:
** Script Error: Operator is missing an argument
** Near: <<tag> >
To me it seems that REBOL means the last > being the operator.
As you can see it also stands out in the error message!
When I try:
>> <<tag>> <tap>
== false
REBOL seems to compare the two tags <tag> and <tap> somehow
HTH,
Arie
[3/5] from: greggirwin::mindspring::com at: 28-Mar-2005 8:52
Sometimes it helps to make a block explicit and see what REBOL thinks
is in it.
>> length? [<<test>> <v>]
== 3
>> first [<<test>> <v>]
== <<test>
>> second [<<test>> <v>]
== >
-- Gregg
[4/5] from: apwing::zonnet::nl at: 28-Mar-2005 18:45
Gregg Irwin wrote:
>Sometimes it helps to make a block explicit and see what REBOL thinks
>is in it.
<<quoted lines omitted: 11>>
>== >
>-- Gregg
So the issue really seems to be that REBOL does not support NESTED tags.
When it arrives at the first closing > the whole tag is closed.
Kind regards,
Arie
[5/5] from: pwawood::mango::net::my at: 30-Mar-2005 14:22
Arie & Gregg
Many thanks for throwing light on to the "problem". I'm going to enter
it to RAMBO to make sure RT are aware of it even if they may not
consider it a bug.
Regards
Peter
On Tuesday, Mar 29, 2005, at 00:45 Asia/Kuala_Lumpur, Arie van
Wingerden wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted