Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
SuperBASIC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Advanced features == * RESPR for resident [[Function (computer programming)|procedures]], e.g. to extend QDOS * choice of parameters passed to procedures * procedures return parameters as chosen * <code>IF</code> - <code>THEN</code> - <code>ELSE</code> - <code>END IF</code> * <code>FOR</code> - <code>NEXT</code> - <code>EXIT</code> - <code>END FOR</code> * <code>REPeat</code> - <code>NEXT</code> - <code>EXIT</code> - <code>END REPeat</code> * <code>SELect ON</code> - <code>ON</code> - <code>REMAINDER</code> - <code>END SELect</code> * arbitrarily <code>RETurn</code> from within procedures & functions * [[Type conversion|data type coercion]] between [[Variable (computer science)|numeric]] and [[String (computer science)|string variables]] * actual parameters passing data type to formal parameters * [[Array (data structure)|array]] operations: slicing, joining etc. * <code>LOCal</code> arrays & (string) variables * <code>AUTOmatic</code> line numbering * relative <code>RESTORE</code> & <code>DATA</code> The function below illustrates the last eight of these features. After having <code>RUN</code> it, entering PRINT weekdays$(Iso("19631122",1)) will print <samp>FRI</samp> to the screen. Until cleared (e.g. by entering <kbd><code>NEW</code></kbd>), the function {{mono|Iso}}<ref>gopher://sdf.org/0/users/retroburrowers/TemporalRetrology/QL/JG</ref> will act like an extension to the operating system. Similarly, according to the QL User Guide, "many of the operating system commands are themselves defined as procedures."<ref>{{Cite book |last=Berry |first=Stephen |url=http://www.dilwyn.me.uk/docs/ebooks/olqlug/QL%20Manual%20-%20Keywords.htm#datareadrestore |archive-url=https://web.archive.org/web/20170222113142/http://www.dilwyn.me.uk/docs/ebooks/olqlug/QL%20Manual%20-%20Keywords.htm#datareadrestore |url-status=usurped |archive-date=February 22, 2017 |title=QL User Guide |publisher=Sinclair Research Ltd |year=1984 |edition=2nd |location=Cambridge}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)