W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2003

RE: Functions with optional arguments?

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Tue, 15 Apr 2003 06:26:17 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB07A7A9C0@red-msg-12.redmond.corp.microsoft.com>
To: "Priscilla Walmsley" <priscilla@walmsley.com>, <public-qt-comments@w3.org>

Priscilla:
This seems to be old text that should be removed  but I want to make
sure that it does not address some other intent.

All the best, Ashok

> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of Priscilla Walmsley
> Sent: Tuesday, April 15, 2003 5:24 AM
> To: public-qt-comments@w3.org
> 
> 
> The F&O draft says:
> 
> "Functions with optional arguments are allowed. If optional arguments
> are omitted, omissions are assumed to begin from the right."
> 
> Is this old text, or is this really true?  Is an argument "optional"
if
> it allows the empty sequence? Is it assumed to be the empty sequence
if
> it is omitted?
> 
> It seems there would be some ambiguity as to how the following
function
> call would be interpreted:
> 
> substring ($myString, 1)
> 
> which returns a different result from:
> 
> substring ($myString, 1, () )
> 
> 
> Thanks,
> Priscilla
> 
Received on Tuesday, 15 April 2003 09:26:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT