$UNSTABLE: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Added documentation of new $MIDISOUNDFONT metacommand) |
No edit summary |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The [[$ | The [[$UNSTABLE]] metacommand is used to enable the use of features that have not yet been made a permanent part of the language. Features hidden behind this metacommand may have breaking changes or be removed between releases. | ||
{{PageSyntax}} | {{PageSyntax}} | ||
:[[$ | :[[$UNSTABLE]]: {MIDI, HTTP} | ||
{{ | {{PageParameters}} | ||
* | * The current unstable features are as follows: | ||
** | ** '''MIDI''' allows usage of the [[$MIDISOUNDFONT]] metacommand ({{Text|no longer required|red}}, see Availability below) | ||
** '''HTTP''' allows opening HTTP connections using [[_OPENCLIENT]] ({{Text|no longer required|red}}, see Availability below) | |||
** | |||
{{PageDescription}} | {{PageDescription}} | ||
* | * [[$UNSTABLE]] exists as a way to allow usage of new language features before they are finalized as part of the language. | ||
* | * Any languages features hidden behind [[$UNSTABLE]] may be changed in breaking ways in the next version of QB64-PE. | ||
* Language features that become a permanent part of the language will no longer require [[$UNSTABLE]] to be used. | |||
* More than one [[$UNSTABLE]] can be used in a program. | |||
{{PageAvailability}} | {{PageAvailability}} | ||
* '''QB64-PE v3.2 | <!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | ||
<gallery widths="48px" heights="48px" mode="nolines"> | |||
File:Qb64.png|'''none''' | |||
File:Qbpe.png|'''v3.2.0''' | |||
File:Apix.png | |||
File:Win.png|'''yes''' | |||
File:Lnx.png|'''yes''' | |||
File:Osx.png|'''yes''' | |||
</gallery> | |||
<!-- additional availability notes go below here --> | |||
* '''MIDI''' keyword added in '''QB64-PE v3.2.0''' | |||
* '''HTTP''' keyword added in '''QB64-PE v3.5.0''' | |||
* '''MIDI''' keyword {{Text|no longer required|red}}, MIDI support is stable since '''QB64-PE v3.14.0'''. See [[_MIDISOUNDBANK]]. | |||
* '''HTTP''' keyword {{Text|no longer required|red}}, HTTP support is stable since '''QB64-PE v4.0.0'''. The [[_OPENCLIENT]] HTTP syntax is usable at any time now. | |||
Line 28: | Line 40: | ||
{{Cl|$UNSTABLE}}:MIDI | {{Cl|$UNSTABLE}}:MIDI | ||
' This line is only allowed when {{ | ' This line is only allowed when {{Cl|$UNSTABLE}}:MIDI is used | ||
{{ | {{Cl|$MIDISOUNDFONT}}: Default | ||
{{ | {{Cl|_SNDPLAYFILE}} "example.mid" | ||
{{CodeEnd}} | {{CodeEnd}} | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [[$ | * [[$MIDISOUNDFONT]] ({{Text|deprecated|red}}) | ||
* [[ | * [[_MIDISOUNDBANK]] | ||
* [[_OPENCLIENT]] | |||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 21:25, 17 November 2024
The $UNSTABLE metacommand is used to enable the use of features that have not yet been made a permanent part of the language. Features hidden behind this metacommand may have breaking changes or be removed between releases.
Syntax
- $UNSTABLE: {MIDI, HTTP}
Parameters
- The current unstable features are as follows:
- MIDI allows usage of the $MIDISOUNDFONT metacommand (no longer required, see Availability below)
- HTTP allows opening HTTP connections using _OPENCLIENT (no longer required, see Availability below)
Description
- $UNSTABLE exists as a way to allow usage of new language features before they are finalized as part of the language.
- Any languages features hidden behind $UNSTABLE may be changed in breaking ways in the next version of QB64-PE.
- Language features that become a permanent part of the language will no longer require $UNSTABLE to be used.
- More than one $UNSTABLE can be used in a program.
Availability
- MIDI keyword added in QB64-PE v3.2.0
- HTTP keyword added in QB64-PE v3.5.0
- MIDI keyword no longer required, MIDI support is stable since QB64-PE v3.14.0. See _MIDISOUNDBANK.
- HTTP keyword no longer required, HTTP support is stable since QB64-PE v4.0.0. The _OPENCLIENT HTTP syntax is usable at any time now.
Examples
$UNSTABLE:MIDI ' This line is only allowed when $UNSTABLE:MIDI is used $MIDISOUNDFONT: Default _SNDPLAYFILE "example.mid" |
See also
- $MIDISOUNDFONT (deprecated)
- _MIDISOUNDBANK
- _OPENCLIENT