nerobot

Forum Replies Created

Viewing 15 posts - 286 through 300 (of 805 total)
  • Author
    Posts
  • in reply to: Best Practice: Class vs Struct and Array vs List #10931

    nerobot
    Participant
    1.  Is your Trigger() kind of CanExecute() equivalent?
    2.  Inside of DisableAll / EnableAll you do double work – go through keys and then find by keys. But you can directly Eachin by values
    in reply to: Ted2Go IDE #10925

    nerobot
    Participant

    Can you build v2.6 from sources?

    https://github.com/engor/Ted2Go/releases/tag/v2.6

    in reply to: Creating an empty class or struct array #10921

    nerobot
    Participant

    Local Controls:Control[] ‘0 length controls

    really! why it’s not a null object?! magic. 🙂

    in reply to: Bug: Full Screen at the start #10875

    nerobot
    Participant

    I suppose it’s incorrect to set screen mode inside of constuctor.

    Better way to do it when window done with layout.

    in reply to: Tuple experiment and usages #10873

    nerobot
    Participant

    Examples?

    C# 7.0: http://www.c-sharpcorner.com/article/working-with-value-tuple-in-c-sharp-7-0/

    Swift: https://www.weheartswift.com/tuples-enums/

    Kotlin (not a tuple, but..): http://kotlinlang.org/docs/reference/multi-declarations.html

    (I like Kotlin lang, advice to take a look.)

    What about don’t wrap returned type with any chars and use just a commas?

    in reply to: Ted2Go IDE #10857

    nerobot
    Participant

    A few words about my development.

    Updated version numeration

    Now I name current dev version with ‘a’ postfix (alpha) – like v2.7a.

    And will remove postfix when ready to release.

    Started to improving parser / completer

    Now completion can understand namespaces!

    Just type filesystem. (with dot) and see what happen. Namespaces are filtered by ‘using’ directives, to see filesystem you should to ‘using’ it (via Using std.. for example).

    Also completion works inside of ‘Using root.sub1.sub2’ section.

    In new version I pass into parser new data about document – docLineStr and docPosInLine. They help to understand where we are.

    More improvements are coming.

    Look at all new stuff in dev-branch.

    in reply to: Ted2Go IDE #10853

    nerobot
    Participant

    Seems to be related to the error hilighting since it happens as soon as I hover the error red line in the document.

    Fixed now.

    No need to respond to this message, do anything you like.

    Thanks.

    Fix in completion
    Current version (on itch.io) have bug – modules don’t parsed and you can see insufficient completion list.

    Now it fixed in repository.

    in reply to: Tuple experiment and usages #10852

    nerobot
    Participant

    Tuple types could be declared with brackets, eg: Local result:(Entity,bool), Function Find:(Object,bool)( blah:String ) etc.

    It would be super-cool!

    Ok, type conflicts with function types (I think) – perhaps <> instead, eg: Local x:<Int,Float>?

    But < > are used for templates types, conflictable too.

    I prefer ( ) because other langs use them.

    in reply to: Load/save persistent data on mobile targets? #10843

    nerobot
    Participant

    I think when user uninstall app he expects data losing.

    AFAIK private shared prefs also will be removed on app uninstall.

    in reply to: Load/save persistent data on mobile targets? #10841

    nerobot
    Participant

    If you will store data in external storage – user can formatting sd-card and lose your data.

    Need to use cloud-based storage like google-drive or play-services.

    in reply to: MojoX Build Cleaner Utility #10839

    nerobot
    Participant

    Similar feature is right inside of Ted2Go IDE – right click on project name and select menu item “Clean (delete .buildv)”.

    It works if you have a .buildv right inside project folder. So you can’t clean modules inside of ‘monkey2’ project.

    I can add recursive search if needed.

    in reply to: Load/save persistent data on mobile targets? #10835

    nerobot
    Participant

    ok. how would this work for desktop?

    Topic about mobile. 😉

    For desktop there are AppDir () AssetsDir () HomeDir ().

    in reply to: Load/save persistent data on mobile targets? #10827

    nerobot
    Participant

    where are you getting InternalDir() from?

    std.filesystem namespace.

    in reply to: Tuple experiment and usages #10825

    nerobot
    Participant

    Cool! 🙂

    Some time ago I added issue on github about creating tuples with same name (like in c#):

    • Tupple<T1,T2>
    • Tupple<T1,T2,T3>
    • Tupple<T1,T2,T3,T4>

    We can’t do it in monkey – it produce duplicate identifier error . I don’t know is it good to be implemented in monkey2 language.

    I’d be happy with Tupple2,3,4,… too. 🙂

    in reply to: Load/save persistent data on mobile targets? #10824

    nerobot
    Participant

    Try to use that:

Viewing 15 posts - 286 through 300 (of 805 total)