All~

This might have already been suggested, or their might be a good reason why not to do this but here is my idea.

Why not have unprotyped calls pass an array in P5 and a hash in P6? The array can hold the first n positional arguments (possibly 0, for which Null could be passed to avoid creating the array) and the hash can hold the remaining m positional or name based arguments (also possibly 0).

Prototyped calls, then pass things in the exact registers they need I5-I15 for integers, S5-S15 for strings, etc... and protyped calls can only be made when the full types are EXACT (i.e. no default values, or anything else...).

This allows the speed freaks to have a fast prototyped call with no runtime checks, and us mere mortals can go the slow way...

Matt

Reply via email to