Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 1 checkin (+30/-0) by Henrik Grubbström (Grubba) <grubba@grubba.org> Lines added/removed recently

Wednesday 07 November 2018

2018-11-07 11:03:56 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Added syntax for marking a class as constant.

The class annotation syntax

@constant;

now causes the class to have the PROGRAM_CONSTANT flag set.

This flag indicates that objects created from it may be regarded
as constant/immutable and shareable (ie they do not contain any
relevant state other than that passed to them at creation time).
The compiler and/or runtime may replace such objects with other
objects that they compare `== with at any time.

[permalink]

Bugs? Suggestions?