factor/extra/geom/dim/dim.factor

16 lines
233 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: sequences mortar slot-accessors ;
IN: geom.dim
SYMBOL: <dim>
<dim> { "dim" } accessors define-independent-class
<dim> {
"width" !( dim -- width ) [ $dim first ]
"height" !( dim -- second ) [ $dim second ]
} add-methods