dmd debug(level) Is it obsolete?
Nick Treleaven
nick at geany.org
Sun Aug 17 21:43:29 UTC 2025
On Sunday, 17 August 2025 at 14:59:00 UTC, Brother Bill wrote:
> Page 462 of book: Programming in D
>
> This won't compile. Is this obsolete?
> ```
> app.d(8,8): Error: identifier expected inside `debug(...)`, not
> `1`
> debug(1) writeln("entered myFunction");
> ^
Yes, for rationale see:
https://dlang.org/changelog/2.101.0.html#dmd.deprecate_version_int
More information about the Digitalmars-d-learn
mailing list