Re: Strange behavior of an attribute
Jonathan Swartz <[email protected]> Wed, 26 Feb 2014 14:57:45 -0800
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
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