NextBuild
NextBuild copied to clipboard
Well you asked for suggestions... ;)
A way to iterate structures/objects in memory, similar to what sjasm does with it's structs would be fantastic, especially if combined with a foreach type command and list/array management?
e.g. Dim aliens as new List(alien) for i = 1 to 10 :aliens.Add(alien): next i foreach alien a in aliens doAction(a) NextEach
aliens.removeAt(4)
I know that's huge but would be a massive plus point making games and more serious utilities too.
So I have been thinking about this a lot. To have a full structured list implementation would probably overkill - but I agree that having a list where you don't need to manage positions/adding/removing would be super beneficial.
Definitely 👍
Posting a major feature request on someone else's project is very easy, but i think it would massively improve it.
Hi
As you say this cane be done with
IF a = 1 Do stuff Elseif a = 2 Do stuff Elseif a = 3 Do stuff Else Do stuff Endif
On Tue, 20 Sept 2022 at 07:11, marca1969 @.***> wrote:
A very useful useful construct would be a SELECT … CASE (Visual Basic) or SELECT ON (QL superbasic). In VB: Select Case Variable Case 1 command list <1> Case 2 command list < 2> Case Else … End Select
In QL SB: SELect ON Variable =1: command list <1> =2: command list <2> = 3 TO 5: command list <3> = REMAINDER: … END SELect
Nothing that you cannot do without nested IF … THEN, but this was much flexible.
— Reply to this email directly, view it on GitHub https://github.com/em00k/NextBuild/issues/12#issuecomment-1251884370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJNITCHG7ANI7C6KOKVLN3V7FIQRANCNFSM4XAQQHBA . You are receiving this because you were assigned.Message ID: @.***>
-- Cheers,
David
David Saphier @.***
I think boriel has this in his backlog already.