On Sunday, January 12, 2003, at 05:27  PM, Dave Rolsky wrote:

On Sun, 12 Jan 2003, Matthew Simon Cavalletto wrote:

Ick. That's clearly not as nice as just saying $dt->hour(17).
Whether this method is an updater is an entirely different can of worms ;)
If not, it'd presumably be easy to stick an updating decorator in front of it, using the same type of structure as in the "dynamic wrapper for static objects" class I proposed earlier.

$dth->hour(17);
# Really calls $$dth->clone( hour => 17 ) or equivalent
# internal gymnastics, and then stores the resulting object.

-Simon

Reply via email to