next up previous contents
Next: Isvoid Up: Expressions Previous: Case   Contents

New

A new expression has the form
new <type>
The value is a fresh object of the appropriate class. If the type is SELF_TYPE, then the value is a fresh object of the class of self in the current scope. The static type is <type>.