int i = 99 ;
In NetRexx, statements are terminated by an optional semicolon or
the end of the line. This means that continuing a line requires a continuation
character (-) at the end of the line.
Examples:
i = 99
j = 222 ;
Both languages allow multiple statements on a line, but in practice
this is not usually done.
|
|
|
|
|
Note that a method is just a block with a name so it can be called.
/* This is an example of a comment valid in Java and NetRexx. */
Both allow comments on the end of a statement line, but the delimiter is different:
Java statement // comment to end of line
NetRexx statement -- comment to end of line