> Isn't this almost a case for revamping the prototyping system? You can
> define your API in terms the current perl variables (nothing in the above
> suggests that integers versus floats is the main problem) and have a
> prototype system that actually allows you to specify that "argument 3
> should be an array with 5 entries", "argument 2 must be a hash reference"
> (allowing you to pass in a scalar containing a hash ref as well as a
> hash). Would that cover what you want?

It would be a start.  It certainly would address my example, especially if
you could specify that the 5th argument be a referenced blessed into the
Foo::Bar class.  However, if you're going to go that far, you might as well
allow for real typed vars.

++t

Reply via email to