[sv-bc] subroutine argument default question

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Tue Jul 31 2007 - 06:34:30 PDT
Hi,

Subroutine defaults are evaluated in the scope containing the subroutine
declaration, not the subroutine call. I think property and sequence
defaults work the same way.

How important is that?
Why could not the default be evaluated as though the call were written
with the default expression explicitly appearing in the subroutine call?
How important is the back-compatibility issue?

If for example, the default expression were a[i], the variable pointed
to would change from call to call anyway, depending on the value of I,
and defaults do not have to be constant expressions.

Thanks,
Shalom


Shalom Bresticker
Intel Jerusalem LAD DA
+972 2 589-6852
+972 54 721-1033


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jul 31 06:34:49 2007

This archive was generated by hypermail 2.1.8 : Tue Jul 31 2007 - 06:35:21 PDT