Warn about using the GC

Daniel N no at public.email
Sun Jan 14 09:44:23 UTC 2024


On Sunday, 14 January 2024 at 09:25:18 UTC, Walter Bright wrote:
> Instead of using @nogc, we could have a compiler switch "warn 
> on use of GC" which you can turn on if you like, or not, or 
> turn on the -w switch to treat the gc warnings as errors.

What if you use @nogc in the hot-path but want to use gc during 
initialization?




More information about the Digitalmars-d mailing list