From: ara.t.howard@... Date: 2006-10-05T23:30:07+09:00 Subject: Re: traits question itsme213 wrote: > Why does traits use an instance variable to indicate that a value has been > set? Why not use a sentinel value (e.g. some object private to traits > itself)? > > Thanks. the main reason: module Traits PER_OBJECT_SENTINELS = Hash.new ... end memory_leak = lambda do obj = Object.new obj.trait 'setting_would_update_sentinel' obj.setting_would_update_sentinel = 'we have to be careful when obj is destroyed...' end regards. btw - this message shows up in google groups, but not via mailing list... am i the only one who noticed? -a