Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Bug in To?

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 : > > >> 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 >
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