[Pharo-users] Re: Private Methods

2021-08-18 Thread David Pennington
I found this useful when creating commercial frameworks for VAST. For instance, in the printing framework, I used the idea of a turtle (from turtlegraphics) to create pages. All the turtle commands - turn(50) etc - were public but the code that actually created the printing code was all

[Pharo-users] Re: Private Methods

2021-08-18 Thread Gabriel Cotelli
As Esteban pointed out there are some dialects with proper support for that. But the semantics is the same as in Pharo, you can still send these messages. It is more a warning to the programmer, and the browser shows you these methods with a particular icon or has tabs so you can easily filter

[Pharo-users] Re: Private Methods

2021-08-18 Thread Esteban Maringolo
Hi Noury, In Dolphin Smalltalk and in IBM/VA Smalltalk, methods can be private, it's a special attribute of the CompiledMethod, so the visibility doesn't depend on a category name convention, and you can have both public and private methods sharing a single category. I used that attribute

[Pharo-users] Re: Private Methods

2021-08-18 Thread Noury Bouraqadi
Hi Esteban, Which first "class attribute" are you referring to? Is it a pragma? Can you provide an example please ? Thanx Noury On Aug 17 2021, at 10:31 pm, Esteban Maringolo wrote: > I don't understand the request? > > Wouldn't tagging methods as private (as a first class attribute, and > not