Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
I knew that. But I’m on a MacBook.
I think maybe be something is corrupted as I just tried a couple of the bananas demos and they crash as well. I was considering ram failure but I don’t think that’s what’s wrong as nothing else fails only the monkey games after I recompile them.
the only thing that doesn’t work that way is Bool. Integers, Floats and shorts work. I thin Mark needs to fix that.
you don’t need to use cast for primitives. you can do this:
[/crayon]Monkey123[crayon-5cba974f9f962549927420 inline="true" ]Local b := TruePrint "b: "+String(b)> Method Slice:T[](from)
or
> Method Slice:T[](from:Int,term:Int)I think you need to do a CopyTo:
> Method CopyTo:Void( dstArray:T[], srcOffset:Int, dstOffset:Int, count:Int )I believe you have to create a temporary variable array of the desired length as I don’t see any other way.
or you can simply resize an empty array:
> nn = New Float[10]Yes, you presented the problem pretty clearly. I just don’t like it. My response is that I wrote a thought that came out way to loud, An opinion that maybe I should have kept to myself.
It was interesting to see Simon get on the defensive as well.
@Simon,
I am not going to question your opinion you are quite a bit smarter and talented than I am. but until I see a good example of it (the reason it’s getting cyclic redundancy) i won’t change my mind. When you show me a good example I might change my mind, apologize and start using it that way. I am a bit of a hard head that way. Sorry.
I never said generics are pointless, just that particular use of them.
don’t get so defensive, as I said, Ignore. it’s just an opinion by this humble programmer that learned to program mostly by self.
Such as?
I don’t know. but a first object that needs another object to be created and the other object needing the first object for that one to be created is kind of Pointless to me. I know it’s just my thinking and I am not an authority on this but It doesn’t make any sense to me. I don’t want to start a big argument about this but I would like to see a good implementation of it to change my mind.
and Yes my point can be ignored.
you won’t need casting if you apply good use of Polymorphy and may be useful for generics as well.
why would anybody want to torture themselves with that? I think it’s overcomplicating something that can easily be solved with a different approach.
I was trying to use the keyboard to control the input for the operations. I used OnKeyEvent and event.Key to access the the keyboard input but Event.Key does not return all the keys pressed. At least not in a way I can comprehend. It seems to me that it returns the keyboard button but not the key. for example on the qwerty keyboard the plus and equals sign are on the same key. so If I want to use the equal sign it’s fine. but if I want to use the plus sign it registers as the equal sign. I am probably missing something but don’t know.
interesting! I need to learn how to use Lambda.
I was trying to get degac’s code to work but run into problems. How do you access keys like the Plus key? I can access the equal key but not the Plus key which is a shift of the same key.
I did. Thanks.
I think you got both functions reversed:
Pi/180.0 is not 57.29577….
neither is 180.0 /Pi = 0.017453….
Monkey12345678910111213Function RadiansToDegrees:Double(x:Double)Const RadianScalar:= (Pi / 180.0) ' 57.29577951308232Return (x * RadianScalar)EndFunction DegreesToRadians:Double(x:Double)Const DegreeScalar:= (180.0 / Pi) ' 0.017453292519943295Return (x * DegreeScalar)EndAugust 1, 2016 at 5:48 pm in reply to: String.Chars() / .LTrim() / .RTrim() / .LSet() / .RSet() / .Space() #2657you can do this to get the ascii code:
Print “text”[0] ‘ will print the ascii for “t”
it works fine on my MacBook with the latest OSX. What version of OSX are you using? Have you installed the latest tools?
 - 
		AuthorPosts