Good point. However, I do not have an easy way to fix this.
The problem is the following:
- The Mondrian DSL allows you to write "view shape line width: 5". In Roassal,
the method #width: is defined in the class ROLine. In that case, it is reasonable to have
"view shape line" that returns an ROLine.
- Mondrian allows "view shape rectangle withText:". I do not want to have the
method withText: in the class ROBox, so "view shape rectangle" cannot return a
ROBox.
Cheers,
Alexandre
On Aug 4, 2012, at 1:32 AM, Ben Coman <btc(a)openInWorld.com> wrote:
In experimenting to understand
ROMondrianExample>>attachPointOn:
I broke into the execution as follows: "forEach: [:cls | self haltOnce."
now if I highlight and inspect 'view shape line' I get a ROLine.
but if I highlight and inspect 'view shape rectangle' I get a
ROMondrianViewBuilder rather than the expected something like ROBox.
This seems wrong that these are not consistent.
cheers, -ben
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.