Closed richardpawson closed 4 months ago
Proposal:
change from
var x set to system.readKey() or set y to system.readKey()
var x set to system.readKey()
set y to system.readKey()
to
system readykey() into x system random(pack) into card
system readykey() into x
system random(pack) into card
Where x can be new or existing variable. If existing, the type must be compatible
x
Advantages:
main
system call
expression
system
system deal() as Card var deck set to {"Ac","2c","3c",...,"Ks"} system random(deck) into card return card end system
system
Proposal:
change from
var x set to system.readKey()
orset y to system.readKey()
to
system readykey() into x
system random(pack) into card
Where
x
can be new or existing variable. If existing, the type must be compatibleAdvantages:
main
or `procedure'system call
as a sub-type ofexpression
in the grammarsystem
methods (similar syntax to function), but may containsystem
or procedure calls