Memories...

Monkey Archive Forums/Monkey Projects/Memories...

Brucey(Posted 2011) [#1]
More fun with Monkey...
Strict

Import bah.bank

Function Main:Int()
	Local b:Bank = New Bank(32)
	
	For Local i:Int = 0 Until 4
		b.Poke(i * 4, i * i)
	Next
	
	For Local i:Int = 0 until 4
		Print b.PeekInt(i * 4)
	Next
End


output :
0
1
4
9

Bank uses a class called Pointer, which is a pseudonym for a real pointer (malloc/free).

Fun fun... :-)


Skn3(Posted 2011) [#2]
Ooo interesting. How are you implmenting it on the the different platforms?


Brucey(Posted 2011) [#3]
Well, I'm only interested in C/C++ based platforms.
Everyone else can go and make mobile games with their Monkey... I'm into Monkey as purely a cool programming language.

It's a more complete language than BlitzMax, and in the long-term I want a similar build system as I am used to with Max - self compiled modules, etc., rather than this build-a-single-huge-cpp malarkey.


Skn3(Posted 2011) [#4]
Well thats pretty sensible. Pre-compiled modules? wow sounds like your really doing some interesting "tweaks".