Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: OT: Design question

by tmoertel (Chaplain)
on Sep 30, 2004 at 21:27 UTC ( [id://395487]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        PropertyA triggers Event1(a), Event3(b)
        PropertyB # triggers no events
        PropertyC triggers Event3(c)
        ...
    
  2. or download this
        Property  Event
                  1 2 3 4 ...
    ...
           C          c
          ...
    
  3. or download this
        my $property_type_events = {
            Property::A => [ handler { Event::E1->new(@_) } 'a'
    ...
            Property::C => [ handler { Event::E3->new(@_) } 'c' ], 
            ...
        };
    
  4. or download this
        sub handler(&@) {
            my ($event_ctor, @args) = @_;
    ...
                return $event->trigger(@_);
            };
        }
    
  5. or download this
        sub handle_widget_insertion_events($) {
            my ($widget) = @_;
    ...
                }
            }
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found