alias restriction??!

Carl Sturtivant sturtivant at
Mon Jul 20 17:33:15 UTC 2020

On Monday, 20 July 2020 at 17:24:56 UTC, Carl Sturtivant wrote:
> Well perhaps you do parse a "constant-offset expression" i.e. 
> syntactically dotted with constant indexes, like 
> name1.name2[constant].name3 and then later there's a semantic 
> check that the "constant-offset expression" involves no 
> indirections when an offset into the top level object is 
> computed. Then it's treated like any other attribute of a 
> struct with a known offset.

Perhaps this could also work for a class at the top with 
recursively embedded structs and value arrays.

More information about the Digitalmars-d-learn mailing list