nerobot

Forum Replies Created

Viewing 15 posts - 661 through 675 (of 805 total)
  • Author
    Posts
  • in reply to: Reflection questions #5701

    nerobot
    Participant

    Really.. thanks!

    New question. Mark, please check this code. If we comment import of reflection – code works, else – don’t work.

    in reply to: Reflection questions #5695

    nerobot
    Participant

    Also I intrested in further improvement of reflection (generics, instance creation).

    Is it possible to add into reflection module function like NewInstance( stringNameOfType:String )?

    and use like this

    it looked not easy…

    With this stuff we can get object-serializer.

    in reply to: Keyboard Flush (flushchars?) #5672

    nerobot
    Participant

    Try to store keyreleased state into your own variable and use it inside of loop logic.

    Next loop step keys should be flushed by monkey’s event system.

    in reply to: Ted2Go keyboard shortcuts not working #5649

    nerobot
    Participant

    Better via ted2go github repo issues.

    Or here on forum if dislike issues.

    in reply to: Ted2Go keyboard shortcuts not working #5646

    nerobot
    Participant

    Nice to hear!

    (I checked, there is no ‘numlock-bug’ in ted2go code.)

    in reply to: Ted2Go keyboard shortcuts not working #5629

    nerobot
    Participant

    Don’t know… Only wrong thing I know is sending numlock-converted key into core mojox.TextView.

    in reply to: Compile Sizes, An Observation. #5611

    nerobot
    Participant

    For me it looks so difficult to use import-alias.

    Instead of that we can create a file std.default.monkey2 and fill it:

    And import this file in our project via #Import “std.default”.

    in reply to: Compile Sizes, An Observation. #5599

    nerobot
    Participant

    You explore one way:

    • include custom submodules of std
    • using std.. (two dots after std).

    The other way is to use

    • import <std>
    • and using custom submodules, like this
      • Using std.core
      • Using std.filesystem
      • etc….

    But I don’t know will the output be optimized this way. 🙂 Can you try ?

    in reply to: Ted2Go IDE #5596

    nerobot
    Participant

    Small – n – cool changes:

    • “Reload All” action for external changes chicking
    • “Save All” and “Discard All” actions in Save file dialog – showed on Quit and on Close few tabs.

    There is no smart checking for a few changed files, so you will see saveAll / discardAll even for one file. I think it’s not a problem.

    in reply to: Ted2Go IDE #5591

    nerobot
    Participant

    I will add.

    in reply to: Ted2Go IDE #5582

    nerobot
    Participant

    New stuff in a repo!

    • (!) Now call “Force stop” before build / buildAndRun. Is it OK for everyone?
    • (!) Project view – added simple files filter (see project.json); double-click to expand folders; little faster scroll.
    • (!) Autocomplete – improved ‘self’, added ‘super’.
    • Autocomplete – improved insertion – brackets for methods and full description if there is “method” keyword before – try to override method and you’ll see the power of that. 🙂
    • Fixed text insertion – if text was copied from codeview (prepared on copy/cut).
    • Improved parser checking for some entity types.
    • Synced Sources tree with current line.
    • Added new icon for field-is-func members.
    • Display brackets [] for arrays.
    • Colors by theme – for Autocomplete list and Sources tree.
    • Merged ted2 (+smooth theme, some fixes)

     

    Files filter – see the file ‘ted2go/project.json’.

    There is no regexp, the logic is:

    • *filter – starts with star – check text.StartsWith( filter )
    • filter* – ends with star – check text.EndsWith( filter )
    • *filter* – starts and ends – check text.Find( filter )
    • w/o stars – check equals, text = filter
    in reply to: "Class Thing[T] Extends T" won't compile #5539

    nerobot
    Participant

    I have more attentively looked at your code.

    You want to extend Container with template type. So my previous answer is wrong.

    The ideal solution to all this would be for Mark to implement Mixins (or Traits, or whatever you want to call them).

    It looks like the only way.:)

    in reply to: Global Const initialized from monkey.math.Pi calculation #5531

    nerobot
    Participant

    Added to issues https://github.com/blitz-research/monkey2/issues/123

    in reply to: "Class Thing[T] Extends T" won't compile #5529

    nerobot
    Participant

    There is no docs for this yet (I never seen). I hope it will be added later.

    You can find a few topics on this forum by request ‘Where T’.

    “Where” in mx2 works like in c#, google “c# where” for more info.

    I don’t use T directly inside Container, no, but used as I have, it allows me to turn any class into a Container without having to rewrite the Container methods.  It allows me to use Container as a mixin with any other class.  The key point is that in my example Frame extends both Container and Widget – it inherits all methods from both classes.  I guess you could call it multiple inheritance but that has a bad reputation so it’s a term I prefer to avoid.

    It looks like that solution for you is using

    So you can add any widget into container (they all implement IWidget), and you also can add frames into container (it implements IWidget too).

    in reply to: FORUM – ask for specific section #5527

    nerobot
    Participant

    Is it possible and useful to anyone to add support for likes in the forum?

    For me it’s useful. Often I simply want to Like post but don’t want to create post.

Viewing 15 posts - 661 through 675 (of 805 total)