Category:Phix/Class

From Rosetta Code
Revision as of 10:06, 25 May 2020 by Petelomax (talk | contribs) (Created page with "Phix does not force the use of an objected orientated programming paradigm, but allows it where appropriate. The following is simply a collection of rosettacode entries that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Phix does not force the use of an objected orientated programming paradigm, but allows it where appropriate.

The following is simply a collection of rosettacode entries that make use of any class or struct handling.

Note that the rest of Phix uses copy-on-write semantics, such that after object a = something, b = a modifying a or b will leave the other intact, whereas structs and classes are proper references, such that after myclass a = new(), b = a modifying a or b will modify them both.

These features are mostly implemented via the auto-include builtins\structs.e, but of course also tightly integrated into the main language parser.