[Grace-core] Obejctdraw

Andrew P Black black at cs.pdx.edu
Sun Dec 29 14:05:16 PST 2013


On 21 Dec 2013, at 11:17 , Kim Bruce <kim at cs.pomona.edu> wrote:

> As to Andrew's other "point" (or should I say GPoint), while I am sympathetic to having Point be immutable, if you are allowing the geometic objects to be mutable, then likely you want them to have Points as instance variables.  Thus when you move them, you will need to move those Points rather than create new ones.

Why?  The same argument would say that if we put x and y coordinates in geometric objects, then we need to make Numbers mutable!

 


More information about the Grace-core mailing list