-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Well you asked for suggestions... ;) #12
Labels
enhancement
New feature or request
Comments
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
<#12 (comment)>,
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: