Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

aspects missing?

54 views
Skip to first unread message

john c

unread,
Jan 28, 2013, 3:19:38 PM1/28/13
to
hi all,

can someone tell me why some instance variables don't get aspects assigned to them? i have 2 examples which are simple strings. is there a way to create an aspect if it's missing?

it makes using model/createSchemeaticWiring difficult.

john

Christopher J. Demers

unread,
Jan 28, 2013, 4:44:37 PM1/28/13
to
My recollection is that by default Dolphin automatically considers
straight instance variable accessors to be aspects. If there is any
code beyond just getting/setting an instance variable then it isn't
assumed to be just an accessor. A getter method that performs lazy
initialization won't be seen as a simple getter because of the extra code.

See class side implementations of publishedAspectsOfInstances to see how
to add aspects.

Chris Demers

john c

unread,
Jan 28, 2013, 4:53:55 PM1/28/13
to
hi chris,

you nailed it! i use lazy initialization in the getter.

i may not like it but at least i understand it.

john
0 new messages