Seems it works. Thank you for the really quick fix.

The question origin is
http://stackoverflow.com/questions/21779481/moose-in-mason-default-array-value-not-set

Going to make an answer for the OP's question. :)

ak.




On Wed, Feb 26, 2014 at 11:57 PM, Jonathan Swartz <swa...@pobox.com> wrote:

> I've released a fix in Poet 0.15, let me know if it works for you.
>
> Jon
>
> On Feb 26, 2014, at 2:47 PM, A Kobame <kobam...@gmail.com> wrote:
>
> :-) Thanx. Additionally, it works when the ftest.mc is called from
> another component.
>
>  e.g., the:
>
> <& ftest.mc &>
>
> gives the right result.
>
> ak.
>
>
>
> On Wed, Feb 26, 2014 at 11:38 PM, Jonathan Swartz <swa...@pobox.com>wrote:
>
>> So far I've determined that it has to do with Poet's special handling of
>> ArrayRef[Int]. If you remove that isa, it works.
>>
>> On Feb 26, 2014, at 1:56 PM, A Kobame <kobam...@gmail.com> wrote:
>>
>> app="testapp"
>> rm -rf "./$app"
>> poet new "$app" || exit 1
>>
>> rm $app/comps/Base.mc
>> cat <<'EOF' >$app/comps/ftest.mc
>> <%class>
>>     use Data::Dumper;
>>         has 'field' => (isa => 'ArrayRef[Int]', default => sub{[1,3]});
>> </%class>
>> <% Dumper $.field %>
>> EOF
>>
>>
>>
>
>
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to