On Mon, May 9, 2016 at 11:02 AM, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hi.

I have maybe stupid question. Why Spec needs SpecInterpreter? If I understand correctly it purpose is to parse literal array and create morphs from it. Is it true?
If yes then why Spec not uses general literal array parser? (there is one which was born from old discussion about external formats��http://smalltalkhub.com/#!/~SvenVanCaekenberghe/ObjectLiterals)

No. Morphs are created by Adapters, Spec interpreter instantiates glues everything together.
Regardless, there's no parsing involved��� what is there to parse? There are no literal arrays anywhere.
The SpecLayout (that we called array last week), is not an array, it's a composition of real objects

defaultSpec
^ SpecLayout composed
newRow: [ :row | row newColumn: [ :col | col add: #topToolbar height: self toolbarHeight ] ]
height: self toolbarHeight;
newRow: [ :row |��
row
newColumn: [ :col | col add: #navigatorModel ] origin: 0 @ 0 corner: 0.2 @ 1;
addSplitter;
newColumn: [ :col | col add: #tabManager ] origin: 0.2 @ 0 corner: 0.85 @ 1;
addSplitter;
newColumn: [ :col | col add: #formModel ] origin: 0.85 @ 0 corner: 1 @ 1 ]
top: self toolbarHeight;
yourself


Peter


��

2016-05-04 8:19 GMT+02:00 stepharo <stepharo@free.fr>:
Hi guys


this afternoon we will have a meeting with Peter and others to talk about cleaning Spec API.

If you want/can join let us know

else we can organise another skype.

if you have ideas let us know too.

Stef