Re: Type safety, C++ and code generation



"Randy Brukardt" <randy@xxxxxxxxxxxxxx> writes:

Right. The problem with "limited private" is the loss of numeric literals
(and string literals in another use).

Right. And case statements. And arrays indexed by the type. Etc.

type Int is range 1 .. 10 without operators;

I wonder whether this "without operators" syntax forbids the use of
attributes ('Succ, for example).

- Bob
.