On Friday 13 July 2007 03:59:09 pm Jonathan Swartz wrote:
> [my $foo if 0 discussion]
> I have the same experience every few years, and I've never been able
> to understand why this can't simply be detected and at least flagged
> as an error or warning in the Perl compiler. Does anyone know?
>
> It's one of the few things about Perl that gets me angry. :)

As mst pointed out, this construct _will_ warn in 5.10. If there should ever 
be a 5.12, it might be upgraded to an error there, as 5.9.4 has backported 
the p6 "state" keyword for function static vars, making the hack entirely 
unnecessary :)

Andrew

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to