b2x, x2b, x2c, c2x, max, min
class Fred uses Mathyou can refer to the properties and methods in the class java.lang.Math simply by name, without qualifying them by the class name. For example:
say sin(PI/4)
'data'.reverse 'data'.Reverse 'data'.ReVerse
Changes:
This specification will be published by Prentice-Hall as part of a new book, "The NetRexx Language", later this year.
This level of NetRexx (0.67) should be a functional superset of the final 0.62 OS/2 translator, though there is one small language change.
For those programs that do need to get at the bit representation of numbers, primitive constructors are introduced, for example:
c=char 'M' -- c is the character 'M' i=int(c) -- i has the value 77 d=char(i) -- d is now 'M'
loop for 3000; say 'hi'; end loop i=n by for 10 while j<10; j=n+i; end
/* display the contents of myvar indexed Rexx variable */ do tail over myvar say myvar[tail] endloop over can be used with any subclass of Rexx or of Dictionary (for example, Hashtable).
http://www2.hursley.ibm.com/netrexx/pinger.htmfor a picture of how it looks. You can use this application without downloading the whole NetRexx package.
The first non-IBM release of NetRexx -- the OS/2 Rexx prototype.
[ NetRexx home page. | IBM home page | Search | Contact IBM | Help | © | tm ]