[Laszlo-dev] What's the story for overriding setters?

Max Carlson max at openlaszlo.org
Tue Apr 22 16:41:08 PDT 2008


I know we're moving towards using setters everywhere they're available, 
e.g. setX() will be replaced by $lzc$set_x().  This breaks a use case 
where someone may want to override the behavior of a setter, e.g.

function setX(x) {
   // limit x placement;
   if (x < 0) x = 0;
   super.setX(x);
}

Do we plan to support this, perhaps by keeping named setter methods that 
can be overridden?
-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list