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!