Closed Thread
Page 3 of 353 FirstFirst 123451353103 ... LastLast
Results 21 to 30 of 3521
Like Tree5Likes

Thread: Expression Gate 2

  1. #21
    Wire Sofaking ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    542

    Default Re: Expression Gate 2

    Well, I suppose I'll ask, but will it have something like "for k,v in pairs(tablelol) do"? Also, how much closer are we?

  2. #22
    Wirererer dnifan's Avatar
    Join Date
    Mar 2007
    Location
    Amersfoort, the Netherlands
    Posts
    330

    Default Re: Expression Gate 2

    There is this damn built-in character limitation though
    4096 Characters or something..


    ^ 51mbps Fiber ftw [03:32] <ITSBOT> lua serializing function to be
    intergrated into xbox live
    [03:34] <ITSBOT> no girlfriend for a pineapple under the Channels

  3. #23
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate 2

    Quote Originally Posted by dnifan View Post
    There is this damn built-in character limitation though
    4096 Characters or something..
    Well there are some less elegant ways of working around it, anything is better than single lines

    Quote Originally Posted by ShaRose View Post
    Well, I suppose I'll ask, but will it have something like "for k,v in pairs(tablelol) do"? Also, how much closer are we?
    Nope, no iterator-style loops will be available and you will not be able to access variables dynamically, some "array/stack/etc" might be available though for those purposes. For-loops is basically a no-no, too easy to abuse and too easy to consume the entire CPU.

    Sadly, not closer at all, been up to my neck in other work lately.
    Just to clarify, there will most likely not be a "official" release for a very long time, too much that needs to be done, but when I get time, there will be simpler (barely useable) releases to play around with.

  4. #24
    andy1976uk
    Guest andy1976uk's Avatar

    Default Re: Expression Gate 2

    Would it be possible to have a dynamic number of inputs and outputs, depending on something in the code? This would make gates much more versatile.

    Also, do you plan to have a switch/case mechanism?

  5. #25
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate 2

    Quote Originally Posted by andy1976uk View Post
    Would it be possible to have a dynamic number of inputs and outputs, depending on something in the code? This would make gates much more versatile.

    Also, do you plan to have a switch/case mechanism?
    As mentioned before, switch-case will come when I have time, it is hardly essential.

    Nope, you cannot have dynamic inputs and outputs in the code as it would not make sense since you cannot dynamically access variables, and doing so would require a full recompile of the code if it would even be possible. And I really can't find what it would be useful for?

    ...

    Sadly no more work done so far either, I've had way too much to do and sorry to let you all down, but as it seems I won't be able to spend time on it any time soon.

  6. #26
    andy1976uk
    Guest andy1976uk's Avatar

    Default Re: Expression Gate 2

    No, it's not "essential", but it's pretty useful if you want code that doesn't look like it's been vomited all over the screen.

    Anyway, real-life takes precedence, ok.

  7. #27
    Wire Amateur Sharpshot's Avatar
    Join Date
    Mar 2007
    Posts
    67

    Default Re: Expression Gate 2

    Will it be possible to have the expression gate simulate a timer now?
    Example:
    Code:
    Input -> Timer = 1;
    $Timer > 0 -> Timer += 1;
    "Your life is as free as your will to live it." -JKM
    "Untill you admit you might be wrong, you have never truely been right."-JKM



  8. #28
    Wire Sofaking Fatal_Exception's Avatar
    Join Date
    Oct 2007
    Location
    New Zealand
    Posts
    412

    Default Re: Expression Gate 2

    It already is possible in the current expression gate. See Clk(), interval() and schedule() in the documentation.

  9. #29
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: Expression Gate 2

    Quote Originally Posted by andy1976uk View Post
    No, it's not "essential", but it's pretty useful if you want code that doesn't look like it's been vomited all over the screen.

    Anyway, real-life takes precedence, ok.
    Seconded. I use the switch-case/select-case function regularly when programming.. so very useful.

    Consider the 4096 character limit and it may prove more essential then you think. Ten ELSE IF statements use up a lot more space than one switch statement with ten cases. Temporarily to save time, you could even write the switch code to piggyback already implemented if/else code.

  10. #30
    Wire Sofaking ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    542

    Default Re: Expression Gate 2

    Syranide, perhaps you should ask Flux for a separate SVN for this, so other people could work on it. (Or so nuts like me can play with it)

Closed Thread
Page 3 of 353 FirstFirst 123451353103 ... LastLast

LinkBacks (?)


Similar Threads

  1. Expression Gate : Can't save expression
    By m0nday in forum Bug Reports
    Replies: 2
    Last Post: 08-06-2008, 12:29 PM
  2. Gate - Expression -> Gone!
    By Qvazzler in forum Installation and Malfunctions Support
    Replies: 10
    Last Post: 05-25-2007, 10:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots