September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,18 +1,17 @@
|
|||
#import system.
|
||||
#import extensions.
|
||||
import extensions.
|
||||
|
||||
#class Example
|
||||
class Example
|
||||
{
|
||||
#method foo : x
|
||||
foo : x
|
||||
= x + 42.
|
||||
}
|
||||
|
||||
#symbol program =
|
||||
program =
|
||||
[
|
||||
#var example := Example new.
|
||||
#var methodSignature := "foo".
|
||||
var example := Example new.
|
||||
var methodSignature := "foo".
|
||||
|
||||
#var result := example::(Signature new &literal:methodSignature) eval:5.
|
||||
var result := example~(Signature new literal:methodSignature) eval:5.
|
||||
|
||||
console writeLine:methodSignature:"(":5:") = ":result.
|
||||
console printLine(methodSignature,"(",5,") = ",result).
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue