Re: Testing 2.3

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

Dear Eu users,

I have done the simplest test.

I just have *copied* graphics.e into graf.e
and then ran the program:

-- test.ex
include graphics.e
include graf.e
-- end of program

Nothing happened...

Then:

-- test1.ex
include graphics.e
include graf.e
integer BRIGHT_WHITE
BRIGHT_WHITE=1
-- end of program

I got:

Warning: there is more than one global 
symbol with name "BRIGHT_WHITE"

But integer BRIGHT_WHITE 
is not *global* in my main file.

Then:

-- test2.ex
integer BRIGHT_WHITE
BRIGHT_WHITE=1
include graphics.e
include graf.e
-- end of program

I got too many Warnings to fit in one screen,
about *all* globals in graphics.e

Then I have copied graphics.e into graff.e:

-- test3.ex
include graphics.e
include graf.e
integer BRIGHT_WHITE
BRIGHT_WHITE=1
include graff.e
-- end of program

I got too many Warnings to fit in one screen,
about *all* globals, but *after* include 
graff.e statement, for which my integer 
BRIGHT_WHITE is not *global*.

Then:

-- test4.ex
include graphics.e
include graf.e
include graff.e
-- end of program

I got too many Warnings to fit in one screen,
about *all* globals, but *after* include 
graff.e statement.

Such a behaviour of namespaceing is strange 
enough, I think.

Regards,
Igor Kachan
kinz at peterlink.ru

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

Search



Quick Links

User menu

Not signed in.

Misc Menu