Re: Strange behavior of an attribute
A Kobame <[email protected]> Thu, 27 Feb 2014 00:35:02 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CAHzQ6Z7Yg1mvfatgTpp4go5DZV__DP_9_xih3ZR1JpooW3VfDA@mail.gmail.com> |
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 <[email protected]> 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 <[email protected]> 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 <[email protected]>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 <[email protected]> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users