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

[REBOL] Re: REBOL/View 1.3 - invalid word datatype

From: rebol-list2:seznam:cz at: 20-Dec-2003 16:57

Hello Gabriele, Thursday, December 18, 2003, 10:42:33 AM, you wrote: GS> Hi rebOldes, GS> On Tuesday, December 16, 2003, 6:09:34 PM, you wrote: r>> I can, but it's much more slower and it would mean to make it r>> completely again. Maybe I could use load/next but how to convert r>> invalid word to word?
>>> to word! "whatever you wish"
GS> == whatever you wish
>>> to word! "1,4"
GS> == 1,4
>>> to word! "fun(call, me, args)"
GS> == fun(call, me, args) It's interesting, but how to use it? If you put load (or load/next) it would throw the error anyway:(
>> x: "1 2 3"
== "1 2 3"
>> while [not empty? x][
[ set [y x] load/next x [ print [mold y mold x] [ ] 1 " 2 3" 2 " 3" 3 ""
>> >> x: "1 2 a,b,c 3 4 d/:i._x"
== "1 2 a,b,c 3 4 d/:i._x"
>> while [not empty? x][
[ set [y x] load/next x [ print [mold y mold x] [ ] 1 " 2 a,b,c 3 4 d/:i._x" 2 " a,b,c 3 4 d/:i._x" ** Syntax Error: Invalid word -- a,b,c ** Near: (line 1) a,b,c 3 4 d/:i._x
>>
Anyway it would be useful only if the unknow! datatype would hold all value which would cause the problem: For example in:
>> load "d/1.item._x"
** Syntax Error: Invalid tuple -- 1.item._x ** Near: (line 1) d/1.item._x Would return 'd/1.item._x' not only '1.item._x' -- Best regards, rebOldes -----------------[ http://oldes.multimedia.cz/ ]