missing parenthesis - R3CubeLayout>>on:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

missing parenthesis - R3CubeLayout>>on:

Usman Bhatti
n := elements size nthRoot: 3 ceiling
 should be 
n := (elements size nthRoot: 3) ceiling

in

on: elements
| n rowSizes rowPositions columnSizes columnPositions levelSizes levelPositions |
n := elements size nthRoot: 3 ceiling.
"Initialize the cell sizes"
rowSizes := Array new: n.
columnSizes := Array new: n.
levelSizes := Array new: n.

Otherwise, Array is initialized on a float and that gives an error.

usman


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: missing parenthesis - R3CubeLayout>>on:

abergel
Thanks Usman,

This is now fixed
Alexandre


On Oct 10, 2013, at 8:29 AM, Usman Bhatti <[hidden email]> wrote:

> n := elements size nthRoot: 3 ceiling
>  should be
> n := (elements size nthRoot: 3) ceiling
>
> in
>
> on: elements
> | n rowSizes rowPositions columnSizes columnPositions levelSizes levelPositions |
> n := elements size nthRoot: 3 ceiling.
>
> "Initialize the cell sizes"
> rowSizes := Array new: n.
> columnSizes := Array new: n.
> levelSizes := Array new: n.
>
>
> Otherwise, Array is initialized on a float and that gives an error.
>
> usman
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev