Euphoria 2 BUG!!

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

I'm sorry to inform you people this, but I just found a bug in the dynamic
routine calling in Euphoria 2 (alpha)

In the zipped attachment you'll find a program called "trybug.ex"
It will show the bug, that is in routine_id ()

In the file gfxbuilt.e you'll see a function declaration, and right after
it, you'll see this:

--
begins -------------------------------------------------------------------
    end function            -- end of function: GRAPHIX_Init

    ID_Inits[GRAPHIX] = routine_id ("GRAPHIX_Init")
--
ends ---------------------------------------------------------------------
routine_id actually returns -1, which means I haven't declared a function
called GRAPHIX_Init yet.

The scary part is, and the part that proves it has to be a bug, is that,
when you declare the function global instead of local, it *will * work.
That's very strange, cause I am requesting the routine_id right after the
function ending...

Also try to execute the file gfxbuilt.e on its own, it will work then
also... (It shouldn't make a difference ?!?!?!)

As soon as Robert gets back, I'll send him this mail also. (and prolly ruin
his vacation mood)

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

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

Search



Quick Links

User menu

Not signed in.

Misc Menu