W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2004

Casting/constructors should accept the empty sequence

From: Ashok Malhotra <ashokmalhotra@alum.mit.edu>
Date: Sat, 29 May 2004 16:44:16 -0400 (EDT)
Message-ID: <5638355.1085863456854.JavaMail.jeff@brunch.mit.edu>
To: Don Chamberlin <chamberl@almaden.ibm.com>, mrys@microsoft.com
Cc: public-qt-comments@w3.org

Don, Michael: 
We discussed your comments http://lists.w3.org/Archives/Public/public-qt-comments/2004Mar/0211.html and http://lists.w3.org/Archives/Public/public-qt-comments/2004Mar/00891.html 
in San Jose and agreed to make the following changes: 

1. The constructor functions should accept the empty sequence. If the empty sequence is passed to a constructor function, the empty sequence is returned. 

2. The cast syntax allows the type name to specify whether an empty sequence is acceptable. If it is, and the expression to be cast is the empty sequence, the empty sequence is returned. If the empty sequence is not allowed and the expression to be cast is the empty sequence, a type error is raised. 

Please confirm that this is satisfactory. 

All the best, Ashok
Received on Saturday, 29 May 2004 16:44:53 GMT

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