[Issue 21992] importC: Error: variable is used as a type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 28 08:55:03 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21992

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #2)
> Because ( ) are not seen by the semantic code, the best solution is for the
> parser to turn (i)*2 into a cast expression. Then, if the semantic pass
> determines that i is a variable, rewrite the cast expression into a multiply.
> 
> Do the analogous thing for -, +, and & operators.
Yes, this is what I have in the pipeline already.

--


More information about the Digitalmars-d-bugs mailing list