Hi,
Todays small improvement:
ExampleSlotWithDefaultValue now allows to set the default in the definition (it
was before just hard coding a value).
e.g.
Object subclass: #GG
slots: { #gg => ExampleSlotWithDefaultValue default: 5 }
classVariables: { }
category: ‘PlayGro
:)
look more and more like CLOS :)
now a question: what do you accept as value:
(literals or expressions).
I have the impression that literals are better because no runtime needed.
Stef
Hi,
Todays small improvement:
ExampleSlotWithDefaultValue now allows to set the default in the definiti
> On 27 Feb 2015, at 16:01, stepharo wrote:
>
> :)
> look more and more like CLOS :)
>
> now a question: what do you accept as value:
>(literals or expressions).
> I have the impression that literals are better because no runtime needed.
>
right now it is very simplistic: when you accept,
stepharo wrote
> I have the impression that literals are better because no runtime needed.
Except it eliminates a common-sounding case like:
Object subclass: #GG
slots: { #creationTimestamp => ExampleSlotWithDefaultValue default:
DateAndTime now }
classVariables: { }
category: ‘PlayGround'
Le 27/2/15 16:07, Marcus Denker a écrit :
On 27 Feb 2015, at 16:01, stepharo wrote:
:)
look more and more like CLOS :)
now a question: what do you accept as value:
(literals or expressions).
I have the impression that literals are better because no runtime needed.
right now it is very