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

[F+O] Relationship of casts and constructors

From: Michael Kay <mhk@mhk.me.uk>
Date: Sun, 8 Feb 2004 23:12:36 -0000
To: <public-qt-comments@w3.org>
Message-ID: <000001c3ee99$0b75eab0$6401a8c0@pcukmka>

F+O still describes casts and constructor functions in separate
sections: it is not clear that they are completely synonymous with each

For example, it appears that you will get different errors depending on
whether you use a cast or a constructor function. 

Constructors should be defined entirely in terms of casts, or vice
versa. If the two cases generate different error codes, implementations
can't treat them as being purely different surface syntax for the same

Note also my separate comment that the XPath language spec defines error
codes for casting which conflict with the codes defined in F+O.

Michael Kay
Received on Sunday, 8 February 2004 18:11:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:17 UTC