V34 Up! [MONKEY NEWS]
Monkey Forums/Monkey Programming/V34 Up! [MONKEY NEWS]
| ||
Hi, V34 is now up! Just a quick update, including 1 reasonably important compiler fix. Modules: LoadState/SaveState now only use cookies on FF and IE for 'file://' document.URLs. Added a Backwards() method to List<T> and Stack<T> that allows you to iterate through elements backwards with an EachIn loop. Trans (1.05): Fixed non-void abstract methods in strict mode complaining about missing return expression. Fixed IntType.ExtendsType infinite recursion crash. Added SCREEN_ORIENTATION to android CONFIG.TXT. Fixed overloading method not used overloaded method's munging. |
| ||
Thanks Mark! Any chance of an official sort method for List in the future? (ATM Ive copied the code out of list.monkey and added methods from linkedlist.bmx to get the sorting to work) |
| ||
Thanks for the new update, Mark! If it isn't too much trouble, could you please take a look at this thread here? http://monkeycoder.co.nz/Community/posts.php?topic=507 I'm having a problem with scope and I don't think Private import is working correctly. But I don't want to jump to the conclusion that it's a bug since it could be my misunderstanding. Would be nice if you could take a look and make it clear since it seems like I'm not the only one who's having this problem. Cheers :) |
| ||
Fixed non-void abstract methods in strict mode complaining about missing return expression. <3 you. :) |
| ||
Getting an error compiling even a basic application:Import mojo Class TestApp Extends App Method OnCreate() SetUpdateRate 60 End Method Method OnUpdate() End Method Method OnRender() 'Clear screen and color Cls(0,0,0) SetColor(255,255,255) 'Output DrawText("Hello",0,0,0,0) End Method End Class Function Main() New TestApp() End Function Works fine on HTML5 and Flash but fails elsewhere: XNA Program.cs(1801,21): error CS0161: 'bb_map_Map.bbCompare(object, object)': not all code paths return a value GLFW main.cpp(2834): error C4716: 'bb_map_Map::bbCompare' : must return a value Will log in the bugs |
| ||
None of my Android projects compile successfully in v34. Android compile: [javac] C:\android-sdk-windows\tools\ant\main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to C:\Users\virtech\Desktop\Monkey\Projects\test\test.build\android\bin\classes [javac] C:\Users\virtech\Desktop\Monkey\Projects\test\test.build\android\src\com\virtech\test\MonkeyGame.java:1556: missing return statement [javac] } [javac] ^ [javac] Note: C:\Users\virtech\Desktop\Monkey\Projects\test\test.build\android\src\com\virtech\test\MonkeyGame.java uses unchecked or unsafe operations.ERROR: BUILD FAILED C:\android-sdk-windows\tools\ant\main_rules.xml:384: Compile failed; see the compiler error output for details. Total time: 2 seconds [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error ERROR: Android build failed. Error in compilation! Reverting to v33... |
| ||
Virtech, Just checking - you removed your existing build folders? |
| ||
Yes, deleted the .build folder prior to v34 compile. Tested several projects. Reverted to v33, and it compile ok again. |
| ||
Yeah - something strange with this release. |
| ||
Hi, V34b now up - please use that instead. |