Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: A pair of "mathematical" attributes for arrays?

by lodin (Hermit)
on Sep 10, 2007 at 14:17 UTC ( [id://638084]=note: print w/replies, xml ) Need Help??


in reply to Re: A pair of "mathematical" attributes for arrays?
in thread A pair of "mathematical" attributes for arrays?

What would be necessary though to treat the stuff in the attribute as a block, not evaluate it to an expression.

You could fix that by supplying an anonymous subroutine as the argument. That way, if someone really wanted it to be the same, it would be the same. The attribute would work exactly like other subroutines that take default values. Of course, there is no such thing as attribute arguments today (only "annotations"), but maybe some day in the future.

lodin

  • Comment on Re^2: A pair of "mathematical" attributes for arrays?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://638084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found