[html-formfu] default_args for base classes

Carl Franks fireartist at gmail.com
Thu May 13 21:07:11 GMT 2010


On 7 May 2010 18:13, Daniel Hilton <danhiruton at gmail.com> wrote:
> One concern I have with using 'keys %$defaults' is that the defaults
> are no longer applied in a predictable order.
>
> If I have
>
> default_args:
>  elements:
>    _Input: [ key: some_value ]
>    Text: [ key: another_value ]
>
> the value for 'key' for Text elements is equally likely to end up as
> 'some_value' or 'another_value', and can even change between different
> runs.

Thanks for pointing that out!
I've just noticed that Class::C3 now recommends using MRO::Compat -
which led me to find mro::get_linear_isa() - which provides the same
functionality Class::ISA did, but using the correct c3 order.
I've applied both these changes.

Carl



More information about the HTML-FormFu mailing list