Jesse

Forum Replies Created

Viewing 15 posts - 256 through 270 (of 297 total)
  • Author
    Posts
  • in reply to: Memory? #3547

    Jesse
    Participant

    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.

    in reply to: ToString() method by default #3530

    Jesse
    Participant

    the only thing that doesn’t work that way is Bool. Integers, Floats and shorts work. I thin Mark needs to fix that.

    in reply to: ToString() method by default #3528

    Jesse
    Participant

    you don’t need to use cast for primitives. you can do this:

    [/crayon]
    in reply to: Creating new arrays #3510

    Jesse
    Participant

    > 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]

    in reply to: Generics puzzle #3310

    Jesse
    Participant

    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. 🙂

    in reply to: Generics puzzle #3283

    Jesse
    Participant

    @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.

    in reply to: Generics puzzle #3281

    Jesse
    Participant

    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.

    in reply to: Generics puzzle #3279

    Jesse
    Participant

    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.

    @ethernaut

    you won’t need casting if you apply good use of Polymorphy and may be useful for generics as well.

    in reply to: Generics puzzle #3274

    Jesse
    Participant

    why would anybody want to torture themselves with that? I think it’s overcomplicating something that can easily be solved with a different approach.

    in reply to: Little mojox example – calculator #3264

    Jesse
    Participant

    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.

    in reply to: Little mojox example – calculator #3259

    Jesse
    Participant

    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.

    in reply to: Problem with forward referencing. #3203

    Jesse
    Participant

    I did. Thanks.

    in reply to: (closed) Question about Cos & Sin #2670

    Jesse
    Participant

    @immutableoctet

    I think you got both functions reversed:

    Pi/180.0 is not 57.29577….

    neither is 180.0 /Pi  =  0.017453….


    Jesse
    Participant

    you can do this to get the ascii code:

    Print “text”[0] ‘ will print the ascii for “t”

    in reply to: Ted 2 on Mac OSX #2554

    Jesse
    Participant

    it works fine on my MacBook with the latest OSX. What version of OSX are you using? Have you installed the latest tools?

Viewing 15 posts - 256 through 270 (of 297 total)