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
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 <i.uhnak@gmail.com> 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
On 17 Apr 2015, at 12:17, Johan Fabry <jfabry@dcc.uchile.cl> 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
On 17 Apr 2015, at 10:44, Peter Uhnák <i.uhnak@gmail.com> 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
participants (3)
-
Johan Fabry -
Marcus Denker -
Peter Uhnák