From: Trans Date: 2006-10-06T00:15:13+09:00 Subject: Re: traits question ara.t.howard@gmail.com wrote: > 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? Hmm... was it posted via comp.lang.ruby or ruby-talk-google? T.