El mié., 25 de mar. de 2015 a la(s) 5:44 p. m., Aliaksei Syrel < alex.syrel@gmail.com> escribió:
On Wed, Mar 25, 2015 at 5:32 PM, Torsten Bergmann <astares@gmx.de> wrote:
I would like to see more opinions or proposals from others. ;)
I agree with Doru. Just checked the image and it seems that there is already quite a number of methods with <example> annotation that behave exactly the same behaviour described by Doru. So maybe we could continue having <example> to show how to create a valid instance of the class that have some value and can work? One benefit is that we could based on <example> show some usefull preview of the class in inspector.
Well, that's right. But it is also right that most of them are extensions added by gt. The only thing that we can conclude is that the <example> pragma was not much used before... :)
Assume having a MultistateButtonMorph with <example> pragma. You can inspect MultistateButtonMorph (class) and will get as preview morph instance of the button.
Here I'm with Torsten. To me there there are examples of objects, and examples of how to use an object, and both are different. - On the first you give a well formed object that shows how it is in the inside. - On the second you show what is its API, not caring about the internals. Both are useful depending on what you're doing, but I think the second one is more useful. Specially when I'm working with already existing objects that I have in my hand because I use to inspect leaf objects, not classes. Guille
Cheers, Alex