nerobot

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 805 total)
  • Author
    Posts
  • in reply to: Ted2Go IDE #14440

    nerobot
    Participant

    @druggedbunny Done in dev branch.

    I also added “Copy path” action into tab menu and Project view.

    in reply to: Playniax news #14436

    nerobot
    Participant

    Wow! 🙂

    in reply to: Recursive example (Pow) #14435

    nerobot
    Participant

    Cool!

    in reply to: Ted2Go IDE #14431

    nerobot
    Participant
    1. Open file locationlocation – it’s easy, will add.
    2. Irc chat – I ask Hezkore and Mark what to do with it before removing. But if it’s useful I can restore.
    3. Don’t know about unprofessional status of discord; I like it.
    in reply to: Recursive example (Pow) #14424

    nerobot
    Participant

    Notes:

    -1*exp => -exp.

    Monkey2 already have Pow() function in monkey.math.

    🙂

    in reply to: System Command Failed #14422

    nerobot
    Participant

    Maybe you need fresher version of mx2cc to compile.

    in reply to: Compress/Decompress data buffers #14417

    nerobot
    Participant

    There is the miniz module.

    And example of its usage here:

    https://github.com/blitz-research/monkey2/blob/develop/modules/std/misc/zipfile.monkey2

    in reply to: Read data restore? #14332

    nerobot
    Participant

    Let me simplify code given above.

    DataBuffer class has Load method – use it instead of FileStream etc.

    Also there is a PeekString (for this example) and many other methods to operate with bytes in buffer – read docs of them.

    My version:

    in reply to: Read data restore? #14319

    nerobot
    Participant

    Maybe std.memory.DataBuffer class is what you need.

    in reply to: IEnumerable??? #14318

    nerobot
    Participant

    Look at %monkey2%\modules\std\collections\container.monkey2.

    There are base types, but they are fake – have no methods. So we cant use them as usual.

    Also Array struct don’t implement IContainer.

    So I don’t know how to achive universal processing of any collection.

    in reply to: Your Monkey needs you – post your project link. #14295

    nerobot
    Participant

    Hi,

    here is my localization system – https://github.com/engor/m2-localization

    This is easy to use lightweight system that allow you
    to keep all texts localized on-the-fly.

    in reply to: How would you value a project ? #14271

    nerobot
    Participant

    I thought about converter.

    I think such converter can be sold. 🙂

    in reply to: mx2cc crash during linkage #14254

    nerobot
    Participant

    It is useful to be able to declare an abstract Class Function in order to enforce any derived classes to define the function (a style of contractual programming, I guess?).  Certainly they make sense within an interface, don’t they?

    ‘Static’ mean that this logic is common for whole class/type, not for every instance.

    To declare common logic for instances which can be overriden you should use virtual methods (not a functions).

    To prevent overriding in derived classed you can mark methods as Final.

    To force user to override method – mark it as Abstract; methods of interfaces are abstract by defaul.

    in reply to: mx2cc crash during linkage #14238

    nerobot
    Participant

    My suggestion is good for a short improvements. But if you have long changes then there can be many merges of m2 repo in yours.

    But anyway – the only main repo here is brl/monkey2, and to keep its commits clear Mark have to always use Squash&Merge option (to get single commit of all pulled changes). And I think he does it already. 🙂

    in reply to: mx2cc crash during linkage #14217

    nerobot
    Participant

    You can’t override static methods in java or c#, so I think Mark have to deny it too.

Viewing 15 posts - 61 through 75 (of 805 total)