What is the difference between enum and shared immutable?

matheus matheus at gmail.com
Thu Oct 29 00:55:29 UTC 2020


On Wednesday, 28 October 2020 at 22:07:06 UTC, H. S. Teoh wrote:
> ... (This is why it's a bad idea to use enum with an array 
> literal, because every time it's referenced you get a new copy 
> of the array.)
> ...

Could you please give an example (Snippet) about this?

Matheus.


More information about the Digitalmars-d-learn mailing list