State of Slots

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

State of Slots

Peter Uhnak
Hi,

what is the current state of slots? I found a message by Marcus that it's not ready but that was December; has anything changed? Is there some tutorial/examples? Are there known problems?

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: State of Slots

jfabry

The announcement of 4.0 sais that they work, and we have been using them for some time in the implementation of Live Robot Programming without issues. Sorry, I don’t remember where the examples are, Marcus made me one when I asked about them ;-) Have a look at the LiteralVariable class, I think that is a good way to start.

On Apr 17, 2015, at 05:44, Peter Uhnák <[hidden email]> wrote:

Hi,

what is the current state of slots? I found a message by Marcus that it's not ready but that was December; has anything changed? Is there some tutorial/examples? Are there known problems?

Thanks,
Peter



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile

Reply | Threaded
Open this post in threaded view
|

Re: State of Slots

Marcus Denker-4
In reply to this post by Peter Uhnak

> On 17 Apr 2015, at 10:44, Peter Uhnák <[hidden email]> wrote:
>
> Hi,
>
> what is the current state of slots? I found a message by Marcus that it's not ready but that was December; has anything changed?

Yes, I fixed a lot of bugs and implemented many things… the status is that everything works but the more complex example
of virtual slots that map to a hidden base slot. (even that works, what does not work is when removing/adding slots after there
are already some).

The trello show what needs to be done:

https://trello.com/b/d59lgZFB/slots

I will work on this now step by step in Pharo5

> Is there some tutorial/examples? Are there known problems?
>

Tutorials: Not yet, but it is in  a state that I can start to write them.
Examples: yes.

see

Slot-Examples
Slot-Examples-Associations

and the related tests.

Known problems: the one mentions above: property and boolean slot examples are not yet finished / need some
more base level support.

        Marcus


Reply | Threaded
Open this post in threaded view
|

Re: State of Slots

Marcus Denker-4
In reply to this post by jfabry

> On 17 Apr 2015, at 12:17, Johan Fabry <[hidden email]> wrote:
>
>
> The announcement of 4.0 sais that they work, and we have been using them for some time in the implementation of Live Robot Programming without issues. Sorry, I don’t remember where the examples are, Marcus made me one when I asked about them ;-) Have a look at the LiteralVariable class, I think that is a good way to start.
>

Yes, but we need to distinguish two things

1) Slot “First class instnance variables"

See e.g. ExampleSlotWithDefaultValue or ExampleSlotWithState for examples

2) First class globals.

This allows class Variables to be use in the same way as slots: you can subclass and change read/write’
for that an example is ExampleClassVariable

        Marcus