Is there a way to tell LDC2 to only check the syntax of the source file?
realhet
real_het at hotmail.com
Wed Dec 6 11:53:09 UTC 2023
Hello,
I can turn off linking with -c
I can turn off compiling with -o-
How can I turn it off before the semantic passes?
I'm experimenting with a nasty trink: I prepend "__undefinied__
_;" into the tested code. And if I get an error:
Error: undefined identifier `__undefinied__`
I know it started to do the semantic analysis, but I wonder if
there is a prettier way to do this...
```
__undefinied__ _;void removeCard(Card card)
{
if(card.shortName !in cardMap) return;
/+More code here, also the syntax could be broken. I
wan't to detect exactly that.+/
}
```
More information about the Digitalmars-d-learn
mailing list