15 lines
310 B
Plaintext
15 lines
310 B
Plaintext
defclass Object {
|
|
{
|
|
## this must not be allowed at this level. if it's allowed,
|
|
## it should be at the top-level which is above the class level. this is confusing.
|
|
| j | ## ERROR: syntax error
|
|
set j 20;
|
|
printf ">>> %d\n" j;
|
|
}
|
|
|
|
defun ::* init() {
|
|
printf "Object init...\n";
|
|
return self;
|
|
};
|
|
};
|