I can share non shared things?

2018-06-19 Thread gdelazzari via Digitalmars-d-learn
So, let's say I have this code https://run.dlang.io/is/CaMJjd It doesn't compile, and that makes sense since myNotSharedObject is... not shared. So I can fix it by making the class shared and making a shared instance of it, like this https://run.dlang.io/is/hoMFD1 And that's how shared is s

Re: Confusion/trying to understand CTFE keywords

2018-06-04 Thread gdelazzari via Digitalmars-d-learn
On Monday, 4 June 2018 at 03:18:05 UTC, Jonathan M Davis wrote: I think that part of your problem here comes from the fact that you think of enum or static are "CTFE keywords." That's not what they are at all. Yes, they can trigger CTFE, but they're not the only way. ... Thank you very mu

Confusion/trying to understand CTFE keywords

2018-06-03 Thread gdelazzari via Digitalmars-d-learn
Hello everyone, I'm new here on the forum but I've been exploring D for quite a while. I'm not an expert programmer by any means, so this one may be a really silly question and, in that case, please forgive me. With the premise that I've still not looked a lot into "complex" compile time "stu