On Fri, Feb 16, 2007 at 04:44:21PM +0100, TSa wrote: : HaloO, : : Steve Lukas wrote: : >Thinking of the form, I see three ways: : >(1) The best readable form is probably: : >readonly $temperature; # lexical scope : : The current spec has got : : constant $temperature = getValue();
No, that evaluates getValue() at compile time. He really just wants the already specced form: my $temperature is readonly = getValue(); Or maybe what he really wants is a pragma: no mutators; Larry