therevills

Forum Replies Created

Viewing 15 posts - 256 through 270 (of 272 total)
  • Author
    Posts
  • in reply to: Extending classes and Override question #1087

    therevills
    Participant

    Playing with C#, using override and virtual:

    [/crayon]

    Outputs:

    [/crayon]

    Not using override and virtual keywords:

    [/crayon]

    Outputs:

    [/crayon]
    in reply to: Extending classes and Override question #1086

    therevills
    Participant

    [quote]Well, most languages except c++ (and I think Java gives an error).[/quote]

    Well I always thought C++ was a bit odd 😉

    Java outputs:

    [/crayon]

    Run the code in the above post, pure Java and no errors…

    in reply to: Extending classes and Override question #1084

    therevills
    Participant

    This looks like a bug to me. In most languages the extended version of startup should be called…

    Java:

    [/crayon]

    Outputs:

    [/crayon]

    MX1:

    [/crayon]

    MX2:

    [/crayon]
    in reply to: Cant overload Get in StringMap #1065

    therevills
    Participant

    Thanks for the reply Mark, I had already implemented the GetScreen method before I posted. In MX1 we could override Map.Get, any reason why you have decided to make it final in MX2?

    in reply to: Every object ends up as a C++ Struct? #1025

    therevills
    Participant

    @immutableoctet

    Thanks for the detailed explanation.

    Coming from C#, I’m more use this this explanation of when to use Struts vs Classes:

    https://msdn.microsoft.com/en-us/library/ms229017(v=vs.110).aspx

    @dawlane

    On this page http://monkey2.monkey-x.com/language-reference/

    Mark states:

    Structs are very cheap to create as they are allocated ‘on the stack’ which is effectively a free operation and has no impact on garbage collection.

     

     

    in reply to: Every object ends up as a C++ Struct? #1020

    therevills
    Participant

    My C++ is very rusty… I thought the one of the main differences between a struct and a class was the struct went on the stack and the class went on the heap, along with that you can compare struct by value and classes by reference.

    in reply to: Large EXE size? #962

    therevills
    Participant

    We’ll have to test a really large project and see if the size goes up too much.

    I’m loving the current speed of MX2 compile times 🙂

    (Oh BTW I’ve noticed that the “CODE” tag now expands double quotes)

    in reply to: Suggestion: Rename Mojo2 for MX2 #935

    therevills
    Participant

    Fair enough…

    Let’s me get this straight: So it’s called ‘mojo’ in Monkey(X?)2… and you talk about ‘mojo2’ in your blog… and it’s more like ‘mojo2’ in MonkeyX1 🙂

    in reply to: Hide cursor? #922

    therevills
    Participant

    Looks like Mark needs to wrap:

    https://wiki.libsdl.org/SDL_ShowCursor

    in reply to: Suggestion: Rename Mojo2 for MX2 #921

    therevills
    Participant

    Ah… yes…

    Mark talks about mojo2 in the blog: http://monkey2.monkey-x.com/2016/05/07/little-update/

    Mojo2 has been massively cleaned up and mx2-ified but should still remain largely recognizable to mx1 mojo2 users.

    So in MX2 within code, its “mojo”:

    See it even confused me!

    Rename to “Voodoo” to make it totally clear 😉

    in reply to: (Bug) For..Step negative values not working. #902

    therevills
    Participant

    Still fails in v0.009:

    Which outputs the following:

     

     

    in reply to: (Bug) For..Step negative values not working. #900

    therevills
    Participant

    Function Main is the starting point for all MonkeyX’s (1 & 2) application. You can put anything in there you like (as long as its valid MX2).

    When I tested the negative step on v0.008 it doesnt do anything…

    in reply to: Side scrolling demo updated #896

    therevills
    Participant

    Nice!

    I get this error when trying to upload images: “You don’t have permission to attach files to this post.”

    in reply to: Properties in interfaces #885

    therevills
    Participant

    Leave out the ‘End’…. which ‘End’?

    Getter/Setter:

    Getter Only:

    Did I miss something here?

    in reply to: Welcome to the monkey 2 development discussion forum! #255

    therevills
    Participant

    Ah found the Unsubscribe button 🙂 (top right in a light blue colour)

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