Mark Koopman <[EMAIL PROTECTED]> writes:
> > On Fri, 09 Feb 2001 12:06:12 -0500, Ken Fox wrote:
> >
> >
> > That may work for C, but not for Perl.
> >
> > sub test {
> > my($foo, $bar, %baz);
> > ...
> > return \%baz;
> > }
> >
> > You may notice that only PART of the locally malloced memory, gets
> > freed. the memory of %baz may well be in the middle of that pool. You're
> > making a huge mistake if you simply declare the whole block dead weight.
> >
> > --
> > Bart.
>
> but is this an example of the way people SHOULD code, or simply are
> ABLE to code this. are we considering to deprecate this type of bad
> style, and force to a programmer to, in this case, supply a ref to
> %baz in the arguements to this sub?
Err, if this is declared 'bad style' how is one supposed to write an
object constructor?
--
Piers