strange load behaviour
[1/4] from: chris::langreiter::com at: 26-May-2002 21:13
I have a text file containing:
{
rebol [] 2^-
} {duh}
Upon 'load-ing I expect it to result in a block of two strings. Instead,
the "rebol []" seems to make REBOL load the first string too,
resulting in an ...
** Syntax Error: Invalid date -- 2^-
** Near: (line 2) {
Curiously, this happens only if the "rebol []" substring appears as
first non-withespace element after a line break.
-- case 2 OK --
{rebol [] 2^-
} {duh}
-- case 3 FAILS --
{
duh duh
rebol [] 2^-
} {duh}
-- case 4 OK --
{
duh rebol [] 2^-
} {duh}
-- case 5 FAILS --
{
rebol [] 2^-
} {duh}
I'm currently working with large email archives and that proves to be
quite demanding input data ;-)
-- Chris
[2/4] from: nitsch-lists:netcologne at: 26-May-2002 22:28
Am Sonntag, 26. Mai 2002 21:13 schrieb Christian Langreiter:
> I have a text file containing:
> {
<<quoted lines omitted: 5>>
> ** Syntax Error: Invalid date -- 2^-
> ** Near: (line 2) {
thats a feature.
that way you can do
#!/somewhere/bin/rebol
rebol[]
=2E..
all upto the rebol[] is ignored.
so is your "{" in this case.
use load/all.
>> load/all "zz^/rebol[] yy"
== [zz
rebol [] yy
]
>> load "zz^/rebol[] yy"
== yy
> Curiously, this happens only if the "rebol []" substring appears as
> first non-withespace element after a line break.
<<quoted lines omitted: 17>>
> quite demanding input data ;-)
> -- Chris
- Volker
[3/4] from: chris:langreiter at: 26-May-2002 22:50
> thats a feature.
> that way you can do
> #!/somewhere/bin/rebol
> rebol[]
> ...
Thanks, Volker!
>> I'm currently working with large email archives and that proves to be
>> quite demanding input data ;-)
Rather, my knowledge of REBOL seems to leave quite a bit to be
demanded and/or desired ;-)
Best regards,
-- Chris
[4/4] from: g:santilli:tiscalinet:it at: 26-May-2002 23:39
Hi Christian,
On Sunday, May 26, 2002, 9:13:52 PM, you wrote:
CL> I have a text file containing:
CL> {
CL> rebol [] 2^-
CL> } {duh}
LOAD/ALL should do the job.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted