Re: How to create GTK+ apps with Glade and D on windows

2019-05-31 Thread Aphex via Digitalmars-d-learn
On Friday, 31 May 2019 at 18:47:06 UTC, Obsidian Jackal wrote: I'm new to D and want to create GTK+ apps. I have Visual Studio, Glade, the Gtk+ runtime, DMD, and DUB installed. What steps, guides, or advice should I follow to be able to be able to use these tools together to make a sane app?.

Re: Extract code of function

2019-05-26 Thread Aphex via Digitalmars-d-learn
On Sunday, 26 May 2019 at 17:46:35 UTC, Andrey wrote: Hello, Is it possible to extract code of some function into string variable using CT reflextion? For example: int test(bool flag) { return flag ? 100 : getRandom(); } enum string code = GetFunctionCode!test; // "return flag ? 100 :

Instantiate templated class at runtime

2019-05-26 Thread Aphex via Digitalmars-d-learn
I have been using Orange SerDes library for an application and have run in to a major hurdle. I have the need to SerDes a templated class. It seems Orange can only Serialize the class but when it attempts to deserialize it at runtime it cannot build the class. It represents the type in the