[OpenAjaxIDE] Default for <returns> is void?
Bertrand Le Roy
Bertrand.Le.Roy at microsoft.com
Tue Aug 5 11:38:31 PDT 2008
There is no “Undefined” type, so that would be inconsistent. On the other hand, there is a void operator that returns undefined and fits our needs here.
I think we already had this discussion (and I was the one who didn’t know about void at the time)
From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Jon Ferraiolo
Sent: Tuesday, August 05, 2008 10:13 AM
To: Kin Blas
Cc: ide at openajax.org
Subject: Re: [OpenAjaxIDE] Default for <returns> is void?
Hi Kin,
I had misread the ECMA-262 spec. You are right. There is no 'void' data type, and there is indeed an "Undefined" data type. (Uppercase instead of lowercase). I believe what we need to do to the spec is:
(1) Say that the lack of a <returns> sub-element is equivalent to <returns datatype="Undefined"/>
(2) In the description of the 'datatype' attribute, change "void" to "Undefined"
Jon
[cid:image001.gif at 01C8F6EF.C92D3960]"Kin Blas" <jblas at adobe.com>
"Kin Blas" <jblas at adobe.com>
Sent by: ide-bounces at openajax.org
08/05/2008 09:28 AM
To
<ide at openajax.org>
cc
Subject
Re: [OpenAjaxIDE] Default for <returns> is void?
Why not have it be “undefined” to be consistent with JS since there is no “void” data type?
--== Kin ==--
________________________________
From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Jon Ferraiolo
Sent: Tuesday, August 05, 2008 9:23 AM
To: ide at openajax.org
Subject: [OpenAjaxIDE] Default for <returns> is void?
Just checking - please tell me if you disagree:
If a <method> does not include a <returns> sub-element, then I assume that the default is equivalent to:
<method>
...
<returns datatype="void"/>
</method>
Jon_______________________________________________
IDE mailing list
IDE at openajax.org
http://openajax.org/mailman/listinfo/ide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20080805/ec513453/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: image001.gif
Url : http://openajax.org/pipermail/ide/attachments/20080805/ec513453/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 168 bytes
Desc: image002.png
Url : http://openajax.org/pipermail/ide/attachments/20080805/ec513453/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 166 bytes
Desc: image003.png
Url : http://openajax.org/pipermail/ide/attachments/20080805/ec513453/attachment-0001.png
More information about the IDE
mailing list