Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTheAtom

Posted 03 April 2013 - 08:53 PM

Edit: false alarm, see below

 

Tested on rev1602. Empty lines (or otherwise syntactically insignificant lines, such as comments) can make the saved bytecode unloadable due to some problems with source line debug information. The following fails to load from bytecode unless debug information has been stripped:

 















funcdef void FUNC();
class T
{
    FUNC@ f;
}

void tmain()
{
    T t;
    @t.f = test;
    t.f();
}

void test()
{
}

LoadByteCode() returns asERROR. Removing any of the empty lines before the actual code begins seems to solve the issue.


#2TheAtom

Posted 02 April 2013 - 08:12 PM

Tested on rev1602. Empty lines (or otherwise syntactically insignificant lines, such as comments) can make the saved bytecode unloadable due to some problems with source line debug information. The following fails to load from bytecode unless debug information has been stripped:

 















funcdef void FUNC();
class T
{
    FUNC@ f;
}

void tmain()
{
    T t;
    @t.f = test;
    t.f();
}

void test()
{
}

LoadByteCode() returns asERROR. Removing any of the empty lines before the actual code begins seems to solve the issue.


#1TheAtom

Posted 02 April 2013 - 08:11 PM

Tested on rev1602. Empty lines (or otherwise syntactically insignificant lines, such as comments) can make the saved bytecode unloadable due to some problems with source line debug information. The following fails to load from bytecode unless debug information has been stripped:





























funcdef void FUNC();

class T

{

    FUNC@ f;

}



void tmain()

{

    T t;

    @t.f = test;

    t.f();

}



void test()

{

}

LoadByteCode() returns asERROR. Removing any of the empty lines before the actual code begins seems to solve the issue.


PARTNERS