ae icon indicating copy to clipboard operation
ae copied to clipboard

fix shadowing alias this declaration for the new alias this implement…

Open IgorStepanov opened this issue 7 years ago • 1 comments

…ation

This is needed for dmd#8378. The new alias this implemetation fixes 5973 issue and your fix becomes erroneous. __NewAliasThis is a temporary version which is needed to transition from the old implementation to the new.

If it possible, create a new tag, please.

IgorStepanov avatar Jul 07 '18 00:07 IgorStepanov

I am OK with a workaround if Walter/Andrei are OK with the DMD PR breaking code. However, I don't think __NewAliasThis is a good idea. It would be better to detect if the compiler supports this functionality or requires the 5973 workaround by detecting it with __traits(complies,...) etc.:

https://github.com/CyberShadow/ae/blob/master/utils/meta/caps.d

CyberShadow avatar Jul 07 '18 08:07 CyberShadow