How do I create classes dynamically?

2021-04-14 Thread Mario via Digitalmars-d-learn
Maybe I am just too short in D, but I wanted to find out if it is possible to create classes dynamically. My problem is, I just don't know where to start reading. Maybe at mixin templates? CreateClassWithName!("MyDynamicClassName"); should create the following class to work with dynamically:

Re: How do I create classes dynamically?

2021-04-14 Thread Mario via Digitalmars-d-learn
On Wednesday, 14 April 2021 at 20:47:57 UTC, Steven Schveighoffer wrote: There is no good supported way to do this with the current runtime. The way this is normally done is to use your own reflection system, and build a mechanism to create classes based on their name. There was an old way,

Caesar Cipher

2018-02-11 Thread Mario via Digitalmars-d-learn
Hello there! I know deep Java, JavaScript, PHP, etc. but as you all probably know, that's high-level and most of them only use the heap memory. So I'm new to the wonderful world of low-level and the stack-heap. I started a week ago learning D (which by the moment is being easy for me) but I'm

Re: Caesar Cipher

2018-02-11 Thread Mario via Digitalmars-d-learn
On Sunday, 11 February 2018 at 18:31:35 UTC, Seb wrote: On Sunday, 11 February 2018 at 18:01:20 UTC, Mario wrote: Hello there! I know deep Java, JavaScript, PHP, etc. but as you all probably know, that's high-level and most of them only use the heap memory. [...] If you want to cheap, have

Re: Caesar Cipher

2018-02-11 Thread Mario via Digitalmars-d-learn
On Sunday, 11 February 2018 at 18:28:08 UTC, Cym13 wrote: On Sunday, 11 February 2018 at 18:01:20 UTC, Mario wrote: Hello there! I know deep Java, JavaScript, PHP, etc. but as you all probably know, that's high-level and most of them only use the heap memory. So I'm new to the wonderful world

Re: Caesar Cipher

2018-02-11 Thread Mario via Digitalmars-d-learn
On Sunday, 11 February 2018 at 18:55:14 UTC, Cym13 wrote: On Sunday, 11 February 2018 at 18:50:25 UTC, Mario wrote: On Sunday, 11 February 2018 at 18:31:35 UTC, Seb wrote: On Sunday, 11 February 2018 at 18:01:20 UTC, Mario wrote: Hello there! I know deep Java, JavaScript, PHP, etc. but as you

Re: Caesar Cipher

2018-02-11 Thread Mario via Digitalmars-d-learn
On Sunday, 11 February 2018 at 18:55:44 UTC, Seb wrote: On Sunday, 11 February 2018 at 18:50:25 UTC, Mario wrote: On Sunday, 11 February 2018 at 18:31:35 UTC, Seb wrote: On Sunday, 11 February 2018 at 18:01:20 UTC, Mario wrote: Hello there! I know deep Java, JavaScript, PHP, etc. but as you al

VibeD Rest Interface Generator

2018-03-02 Thread Mario via Digitalmars-d-learn
So I've been learning D since the day 11 (I posted for first time here) and now I've decided to try Vibe.D to make my company API. The fact is that I've achieved to do it (according to the provided code) and it works! But it shows a default message and on the startup. So I'd like to know how c

Error compiling with DUB (dmd) since yesterday dub update

2018-03-10 Thread Mario via Digitalmars-d-learn
I upgraded yesterday to "DUB version 1.8.0, built on Mar 3 2018" using "4.15.6-1-ARCH". I got an error while compiling a project which uses the following dependencies: dependency "vibe-d" version="~>0.8.3-beta.1" dependency "vibe-d:tls" version="~>0.8.3-beta.1" versions "VibeDefaultMain" su

Re: Error compiling with DUB (dmd) since yesterday dub update

2018-03-10 Thread Mario via Digitalmars-d-learn
On Sunday, 11 March 2018 at 06:59:32 UTC, rikki cattermole wrote: On 11/03/2018 7:55 PM, Mario wrote: I upgraded yesterday to "DUB version 1.8.0, built on MarĀ  3 2018" using "4.15.6-1-ARCH". I got an error while compiling a project which uses the following dependencies: dependency "vibe-d"

Re: Error compiling with DUB (dmd) since yesterday dub update

2018-03-10 Thread Mario via Digitalmars-d-learn
On Sunday, 11 March 2018 at 07:11:09 UTC, rikki cattermole wrote: On 11/03/2018 8:02 PM, Mario wrote: On Sunday, 11 March 2018 at 06:59:32 UTC, rikki cattermole wrote: On 11/03/2018 7:55 PM, Mario wrote: [...] Are you aware that it is compiling with ldc? Actually, I didn't even realize XD.