Documentation on Traits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Documentation on Traits

khinsen
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.

Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

CyrilFerlicot
On Wed, Jan 9, 2019 at 11:15 AM Konrad Hinsen
<[hidden email]> 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/Traits.md

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

Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

khinsen
Cyril Ferlicot <[hidden email]> writes:

> There is documentation on Traits here:
> https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Traits.md

Great, thanks!

Konrad.

Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

Steffen Märcker
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 <[hidden email]>:
Cyril Ferlicot <[hidden email]> writes:

There is documentation on Traits here:
https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Traits.md

Great, thanks!

Konrad.

Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

CyrilFerlicot
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


signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

Steffen Märcker
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." <[hidden email]>:
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


Reply | Threaded
Open this post in threaded view
|

Re: Documentation on Traits

Torsten Bergmann
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.