[Nitro] Fwd: Troubles along the class-level heirarchy

Jonas Pfenniger zimba.tm at gmail.com
Thu Jun 8 18:12:40 EDT 2006


On 08/06/06, TRANS <transfire at gmail.com> wrote:
> Oh, one other thing. There is currently no Kernel#ann method. There
> are a couple ways in which this could be defined. It could 1)
> reference annotations for the object itself (You may not know this but
> you can annotate any object via #annotation, not just classes.) or, 2)
> route to the object's singleton class, or 3) route to the regular
> class.
>
> If #3 then references like 'self.class.ann.foo' can be reduced to
> 'ann.foo'. But then won't #2 inheirt from the regular class too? If so
> that would be better than #3 I think. Although maybe #1 is most
> proper? (But not as useful for reducing 'self.class.ann'.)
>
> Thoughts?

Does annotation inherit values like Glue::Configuration ? IMHO object
notation are like attr_accessor, so not very usefull. What is a
"regular" class ? I know the singleton class but the other is just the
class Class ?

-- 
Cheers,
  zimbatm

http://zimbatm.oree.ch



More information about the Nitro-general mailing list