From: Robert Date: 2003-04-29T16:28:17+09:00 Subject: Re: How to undefine a member variable ? (or at least hide it from YAML) "Simon Vandemoortele" schrieb im Newsbeitrag news:Utmra.66334$t_2.6154@afrodite.telenet-ops.be... > On Mon, 28 Apr 2003 at 21:58 GMT, gabriele renzi wrote: > > maybe you could write an attr-like method to automatically unsets the > > variables, kind of "rem_varname". > > That's a very good idea actually. I have a 'noempty_attr_writer' that > removes variables if they are == nil. I suppose that is what you meant. > > However, I'd prefer a solution on YAML level for this problem. This is > really a 'hack'; I should be able to tell YAML: don't save 'nil' values > please (pretty, with sugar on top). That's exactly what I'd prefer, too. Do you really have performance or space problems because of all those unused fields? Regards robert