Handle attributes changes

2014-08-17 Thread Matthieu via Digitalmars-d-learn
Hi! I'm trying to handle the fact that an attribute has change since I've set it for the first time (by desialising a bson), to abstract the only-modified fields update with vibe.d and mongodb, without storing two times the values. The idea is to have something like that : class Base { ...

Re: Handle attributes changes

2014-08-17 Thread Matthieu via Digitalmars-d-learn
I found this, which excactly is what I want to do : http://dlang.org/phobos/std_signals.html So in other terms, I want to abstract that, maybe with an UDA ? But can I do this without compile time code changes ? Thanks again!

Re: Code spliting in module and packages

2014-07-21 Thread Matthieu via Digitalmars-d-learn
Hi, Thanks for your answers. I'll continue to code as I ussed to do, and try to improve my style to have a better usage of the modules (today i'm most one class per file, so I don't use the modules at all). Bye, Matthieu