On Tuesday, 13 February 2018 at 12:32:58 UTC, Stefan Koch wrote:
On Tuesday, 13 February 2018 at 12:17:31 UTC, number wrote:
I just tried again.
compiling the following code eats up my 4GB of RAM and fails.
Please copy the enumeration
from:
https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/gdk/Keysyms.d
into the code.
import std.stdio;
void main()
{
writeln(GdkKeysyms.GDK_Escape);
}
public enum GdkKeysyms
{
...
}
Reducing the number of enum entries step by step finally will
make the compilation succeed. Is it normal that it needs so
much memory?
Yes unfortunately std.conv approaches the problem of printing
enums with recursive templates , which eat a ton of memory.
Ok, thanks for the info. I guess I'll just use printf then for
larger enums.