Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: how to name an anonymous reference

by ikegami (Patriarch)
on Dec 18, 2017 at 02:10 UTC ( [id://1205763]=note: print w/replies, xml ) Need Help??


in reply to how to name an anonymous reference

sub ULONG () { 9 } sub ENUM () { 23 } my $AutoidKind = [ ENUM, "AutoidKind", [ "SEQUENTIAL", "HASH" ] ]; my @annotations = ( [ "id", [ ULONG, "value", undef ] ], [ "autoid", $AutoidKind, [ $AutoidKind, "value", "HASH" ] ], );

Replies are listed 'Best First'.
SOLVED [Re^2: how to name an anonymous reference]
by omkellogg (Novice) on Dec 18, 2017 at 07:16 UTC
    Yes, this is very close to what I was looking for. In this particular language, enum type declarations are local to their enclosing annotation declarations; therefore I will go with http://www.perlmonks.org/?node_id=1205756

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2024-04-23 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found