Hola todos,
There is a bit of confusion regarding visibility of structural entities (at least for me). In some places, we say that a public entity has a 'public' modifier, and in some other places, we say it is accessed outside the package/module in which it is defined. I propose to clear these things up.
In FAMIXNamedEntity, these methods checks for the presence of a modifier in the method signature, as in:
isPublic <MSEProperty: #isPublic type: #Boolean> ^ self modifiers includes: #isPublic
In FAMIXFunction, there is:
isPublic "checker whether I am called outside the module in which I am defined" ^ self receivingInvocations anySatisfy: [:inv | inv sender parentScope ~~ self parentScope]
I was wondering whether FAMIXNamedEntity>>isPublic and friends cannot be renamed as #hasPublicModifier ? In that case, #isPublic and friends will be based upon client accesses.
Cheers, Alexandre
The problem is how to deal with multiple source of information. Indeed the point is either we use isPublic
and override it when needed but this is dependent of the language
or we have isPublic = isDeclaredByTheLanguageAsPublic and computedAsPublic
The problem with that is that we will have always code for static and dynamic language having incompatible interface
BTW could you publish a new version of mondrian with the latest morphic for the extensions?
Hola todos,
There is a bit of confusion regarding visibility of structural entities (at least for me). In some places, we say that a public entity has a 'public' modifier, and in some other places, we say it is accessed outside the package/module in which it is defined. I propose to clear these things up.
In FAMIXNamedEntity, these methods checks for the presence of a modifier in the method signature, as in:
isPublic <MSEProperty: #isPublic type: #Boolean> ^ self modifiers includes: #isPublic
In FAMIXFunction, there is:
isPublic "checker whether I am called outside the module in which I am defined" ^ self receivingInvocations anySatisfy: [:inv | inv sender parentScope ~~ self parentScope]
I was wondering whether FAMIXNamedEntity>>isPublic and friends cannot be renamed as #hasPublicModifier ? In that case, #isPublic and friends will be based upon client accesses.
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