Larry Wall wrote:
...............................  (Perl 6 provides several ways that
are much handier than try/finally, and just about as handy as RAII.)
But baking such handicaps into every object merely guarantees it
will not scale well in the real world.
Thanks for the information. I must admit I rely heavily on the
deterministic nature of C++ for writing "real-time" feed collectors into
stock exchanges. RAII plays a big part in managing locks between threads
and tearing down sockets cleanly (as well as many other things).  I
agree entirely that not all objects need this capability but some
certainly do. That is, the capability to execute code once every
reference of an object has been removed. Could you point to, or give an
example of the Perl 6 way for doing something similar?

Best regards, Blair


Reply via email to