V34 Up! [MONKEY NEWS]

Monkey Forums/Monkey Programming/V34 Up! [MONKEY NEWS]

marksibly(Posted 2011) [#1]
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.




therevills(Posted 2011) [#2]
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)


Hima(Posted 2011) [#3]
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 :)


Samah(Posted 2011) [#4]
Fixed non-void abstract methods in strict mode complaining about missing return expression.

<3 you. :)


dopeyrulz(Posted 2011) [#5]
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


Virtech(Posted 2011) [#6]
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...


dopeyrulz(Posted 2011) [#7]
Virtech,

Just checking - you removed your existing build folders?


Virtech(Posted 2011) [#8]
Yes, deleted the .build folder prior to v34 compile. Tested several projects.

Reverted to v33, and it compile ok again.


dopeyrulz(Posted 2011) [#9]
Yeah - something strange with this release.


marksibly(Posted 2011) [#10]
Hi,

V34b now up - please use that instead.