Help needed for "recursive template expansion error"

Anthony Abeo anthonyabeo at gmail.com
Tue Oct 22 08:16:47 UTC 2019


On Monday, 21 October 2019 at 18:45:44 UTC, Nicholas Wilson wrote:
> On Monday, 21 October 2019 at 18:14:11 UTC, Anthony Abeo wrote:
>> [...]
>
> Please post such questions to the learn forum in the future.
>
> One way to fix this is to use the `This` type to perform type 
> substitution in the Algebraic which refers to the final type of 
> the Algebraic, used like `alias F = Algebraic!(int, string, 
> This[])`.  Where F is either an int, a string or an array of Fs.
>
> You could probably remove `attributes` from code and use
>
> alias ATTR_INFO = Algebraic!(SourceFile, ConstantValue,  
> Excepsion, Tuple!(Code,This[]), LineNumberTable, 
> LocalVariableTable);

- Please post such questions to the learn forum in the future.
Noted. I will do that next time.

I tried your suggestion and it fails silently; no error message / 
stack trace.


More information about the Digitalmars-d mailing list