BYREF
BYREF
Sub/func argument declaration. Changes to the variable will be passed
back to the caller. Equivalent syntax to the @
character.
Example
sub Increment(BYREF i)
1
i = i + end
1
x =
Increment(x)print x ' output: 2
Code samples using BYREF
100lines.bas
2048.bas
2048.bas
3d_torus.bas
3dtorus.bas
agendus.bas
bairstow.bas
calc.bas
easter_mallen.bas
gaussj.bas
gui_cal.bas
img2ascii.bas
integral.bas
klotski_solver.bas
klotski_solver.bas
leastq.bas
lib-dmscon.bas
lib-gputmcon.bas
lib-progress.bas
lineareq.bas
lsystem.bas
maze generator.bas
memoryTest.bas
memorytest.bas
newtonraphson.bas
palm_cli.bas
pdocview.bas
sokoban.bas
sokoban.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
If there is insufficient information on this page and you wish learn more about BYREF,
please send an email to smallbasic@gmail.com. You can help to improve information about
BYREF by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.