Re: Yay for me, found an interpreter bug!

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Monday 03 November 2003 07:12 pm, Aku wrote:

> How about using links in Linux? I haven't tried it (no linux installed
> here), but maybe something like this can work:

Aku, you are a genius!

-- my include file, test.e, contains:
-- global atom x
-- x = 0

system("ln test.e test.one",0) -- create links 'on the fly'
system("ln test.e test.two",0)

include test.one as one
include test.two as two

? one:x
? two:x

one:x = 1
two:x = 2

? one:x
? two:x

Results:
0
0
1
2

And this works without error, even if the links exist already. Even error 
reporting works properly.
I changed test.e to make x a sequence, i..e: 
global sequence x
x = "HELLO"
and here's the output from ex.err:

test.exu:17
type_check failure, x is 1

Global & Local Variables

 test.one:
    x = 1

 test.two:
    x = {72'H',69'E',76'L',76'L',79'O'}

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu