oexw error

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

Hey Matt,

I just wanted to let ya know, that I started working with your OO interpreter, 
but I ran into a problem, following the documentation you gave.

Below is the code I used to try this with:
ootest.exw:
------------------------------------------------
euclass Test ( sequence data )
    function create()
       return {1,2}
    end function
    function PatchWin()
       return this[1]
    end function
    function Status()
       return this[2]
    end function
end euclass

Test wnd
wnd = Test.create()
printf(1,"PatchWin: %d\nStatus: %d",{wnd.PatchWin(),wnd.Status()})
while get_key() = -1 do end while


When doing this, nothing happens, no warning, no nothing.  It just poofs.
But, when I change }}}
<eucode>wnd = Test.creat()</eucode>
{{{
 to }}}
<eucode>wnd =
Test.create(0)</eucode>
{{{

or }}}
<eucode>wnd = Test.create({})</eucode>
{{{
 it comes back as saying not
initalized.

I know there's something wrong with this, and just figured I'd let ya know.

Mario

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

Search



Quick Links

User menu

Not signed in.

Misc Menu