*scope methods are supposed to return a scope of the entity, and not a dependency. Declared type is a dependency, so it does not fit the purpose.
I inspired myself from:
FAMIXMethod>>packageScope
^ self parentPackage ifNil:[ |cl| cl := self parentType. cl isNil ifTrue:[nil] ifFalse:[cl packageScope] ]
So, what the definition of FAMIXFunction>>packageScope should look like?
Cheers, Alexandre
On Dec 9, 2011, at 17:21, Alexandre Bergel alexandre.bergel@me.com wrote:
Hi!
We are importing C++ code in Moose and are bumping into problem when using Chef. packageScope is missing on FAMIXFunction. We could have something like:
FAMIXFunction>>packageScope ^ self declatedType ifNotNil: [ self declatedType packageScope ] ifNil: [ nil ]
Any better idea?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev