Documentation on Traits
Dear Pharo experts, Is there any documentation on traits as implemented in Pharo 7? It's easy to find discussions about the trait feature over the years, plus slides and related stuff, but I am not sure what the current actually implemented version is. I did manage to write and use a first trait (https://github.com/khinsen/EqualityThroughVariablesTrait), but there seem to be more advanced features such as slots that I don't know anything about. Cheers, Konrad.
On Wed, Jan 9, 2019 at 11:15 AM Konrad Hinsen <konrad.hinsen@fastmail.net> wrote:
Dear Pharo experts,
Hello,
Is there any documentation on traits as implemented in Pharo 7? It's easy to find discussions about the trait feature over the years, plus slides and related stuff, but I am not sure what the current actually implemented version is. I did manage to write and use a first trait (https://github.com/khinsen/EqualityThroughVariablesTrait), but there seem to be more advanced features such as slots that I don't know anything about.
There is documentation on Traits here: https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/T... It might still needs review but it should help. It does not cover slots that is independent of Traits even if both can be used together.
Cheers, Konrad.
-- Cyril Ferlicot https://ferlicot.fr
Cyril Ferlicot <cyril.ferlicot@gmail.com> writes:
There is documentation on Traits here: https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/T...
Great, thanks! Konrad.
Nice. Do you know where to find details on stateful traits and slots? I am familiar with stateless traits and wonder how state is incoeporated and how conflicts are handled. Best, Steffen Am 9. Januar 2019 15:21:09 MEZ schrieb Konrad Hinsen <konrad.hinsen@fastmail.net>:
Cyril Ferlicot <cyril.ferlicot@gmail.com> writes:
There is documentation on Traits here:
https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/T...
Great, thanks!
Konrad.
Le 09/01/2019 à 18:49, Steffen Märcker a écrit :
Nice. Do you know where to find details on stateful traits and slots? I am familiar with stateless traits and wonder how state is incoeporated and how conflicts are handled.
The guide I send cover the user documentation of Stateful traits and how to handle conflict. What it does not cover are Slots (that are independents from Traits) and implementation documentation.
Best, Steffen
-- Cyril Ferlicot https://ferlicot.fr
Maybe I missed that part: Can conflicts with slots occur? The section on conflicts only mentions methods as cause. Do you have a pointer to a slots documentation? Am 9. Januar 2019 20:32:51 MEZ schrieb "Cyril Ferlicot D." <cyril.ferlicot@gmail.com>:
Le 09/01/2019 à 18:49, Steffen Märcker a écrit :
Nice. Do you know where to find details on stateful traits and slots? I am familiar with stateless traits and wonder how state is incoeporated and how conflicts are handled.
The guide I send cover the user documentation of Stateful traits and how to handle conflict.
What it does not cover are Slots (that are independents from Traits) and implementation documentation.
Best, Steffen
-- Cyril Ferlicot https://ferlicot.fr
Maybe this collection in my wiki can help you: http://wiki.astares.com/pharo/115 There are also many tests in the image that you can check regarding traits, slots, meta links, ... so you have the source luke. Bye T. Â
participants (5)
-
Cyril Ferlicot -
Cyril Ferlicot D. -
Konrad Hinsen -
Steffen Märcker -
Torsten Bergmann