I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-06-24 15:45:21-07 by mgoldshteyn in response to 8146
Re: Question about multi-field object tests in :Init
Thanks for the speedy response. The only question that remains is, once an invariant test fails, what should be done to abort object initialization in the :Init attributed function, here after referred to as _init(), in a way similar to how it is aborted if for example the type of one of the passed in arguments is wrong. Or perhaps, in a way similar to how any unexpected key/value pairs passed to new() cause creation to fail. Basically, short of doing an explicit die() call in _init(), since I am not even certain if this:

1) Is appropriate...
2) Won't be caught by OIO guts, which call _init and result in undefined and/or unexpected behavior

... what should I do to abort object construction and trigger a die() like bounce back to the client caller of new() from _init().

Thanks for the comments,

Michael Goldshteyn
Direct Responses: 8154 | Write a response