New

From MiniScript Wiki
Revision as of 03:54, 24 January 2021 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

new is a keyword unary operator used to create a subclass or instance. It is part of MiniScript's support for object-oriented programming.

new acts on a map, and returns a new map with __isa set to the operand.


This article is a stub. You can help the MiniScript Wiki by expanding it.