I'd like write a simple log when type field value has changed

something like this
type Item                   
    id::Int32                    
    count::UInt32             
                                         
    # function for writing a log
end                                    
 

then when I do this...
*   a = Item(1, 1)                  *
*   a.count += 10            *

write a message at Console 
*  Item "a" value add(10)                *


Is it possible? or should I make macro to do this. 







Reply via email to