Re: Strange behavior of an attribute
A Kobame <[email protected]> Wed, 26 Feb 2014 23:47:26 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CAHzQ6Z5EwMiBpf_MPrLiwDwX+TUPeDfnK1coW6uqM3==np4axQ@mail.gmail.com> |
:-) 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