Jump to content

  • Log In with Google      Sign In   
  • Create Account


Wipe

Member Since 18 Aug 2011
Offline Last Active Private
-----

Posts I've Made

In Topic: Unregister function?

08 June 2014 - 08:40 PM

Thanks, definitely will be useful smile.png

In Topic: funcdef inside shared interface; "interface already implement" warning

27 February 2013 - 03:55 AM

Another dark secrets of funcdefs found, sorry! ;) We call start() function and expect to reach end().
 
Let's start from crash in cfuncdef1_1::crashme().
Spoiler

 
If we change crashme() a bit, everything looks like it works without any problems (we can reach end()), but generated bytecode cannot be loaded (LoadByteCode() returns -1).
 
    void crashme()
    {
        if( @this._events_ != null && @this._events_.f != null )
        {
            funcdef1@ crash = this.events.f;
            crash( this );
        }
    }
 
And finally, different edit makes "GC cannot free an object of type '_builtin_function_', it is kept alive by the application." error show up.
cfuncdef1_1() { @this._events_ = null; }

In Topic: funcdef inside shared interface; "interface already implement" warning

25 February 2013 - 08:24 PM

Two modules with same code; both need to be loaded from bytecode or error won't show up.
funcdef void fdef();

shared interface iface
{
	fdef@ dummy();
}

In Topic: funcdef inside shared interface; "interface already implement" warning

24 February 2013 - 10:25 PM

Hm, looks like there are still problems when loading from bytecode (shared type doesn't match the original declaration).


PARTNERS