-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use function in Super.New() method #39
Comments
Is this intended behaviour @blitz-research ? |
No, MAV's aren't intended behaviour! Should be fixed now. |
@blitz-research , I assume the fix has not been uploaded yet, as the problem is still there. |
Have you done an updatemx2cc? On Sun, Sep 11, 2016 at 7:49 PM, Wiebo de Wit notifications@github.com
|
...and if it's still happening can you post some runnable code? I threw On Sun, Sep 11, 2016 at 8:31 PM, Mark Sibly blitzmunter@gmail.com wrote:
|
Here's the sample I used, which used to crash like crazy... Class T Function F:T( str:String ) Class C Method New( t:T ) Method New( str:String ) Function Main() New D( "Hello!" ) On Sun, Sep 11, 2016 at 8:32 PM, Mark Sibly blitzmunter@gmail.com wrote:
|
Apparently updateall.sh does not update mx2cc? I performed the update as you suggested and now it's compiling and running!!! Thanks. This allows me to get of a lot of workaround code in object creation etc... |
Yay! Yeah, only 'tagged' releases have prebuilt binaries in them. It's tricky to add updatemx2cc to rebuildall, as depending on what I've Should add this to the readme... On Sun, Sep 11, 2016 at 8:41 PM, Wiebo de Wit notifications@github.com
|
I am trying to call a function when creating an extended class, and calling the Super.New() method. This result in a Memory Access Violation, while the base class does have the New() method that accept an image:
GetImage(name, frame) is a function that will return an image from an array.
While this works, where images is a global variable, set to an image:
The text was updated successfully, but these errors were encountered: