Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how to name an anonymous reference

by ikegami (Pope)
on Dec 18, 2017 at 02:10 UTC ( #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
Node Status?
node history
Node Type: note [id://1205763]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-01-26 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?