[OpenAjaxIDE] Default for <returns> is void?

Kin Blas jblas at adobe.com
Tue Aug 5 11:42:22 PDT 2008


But the void operator is something you have to call, and it returns
undefined. I don't think you can call "typeof" on an operator?

 

--== Kin ==--

 

________________________________

From: Bertrand Le Roy [mailto:Bertrand.Le.Roy at microsoft.com] 
Sent: Tuesday, August 05, 2008 11:39 AM
To: Jon Ferraiolo; Kin Blas
Cc: ide at openajax.org
Subject: RE: [OpenAjaxIDE] Default for <returns> is void?

 

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

 "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/dee3c26d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 105 bytes
Desc: image001.gif
Url : http://openajax.org/pipermail/ide/attachments/20080805/dee3c26d/attachment-0003.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 183 bytes
Desc: image004.gif
Url : http://openajax.org/pipermail/ide/attachments/20080805/dee3c26d/attachment-0004.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 179 bytes
Desc: image005.gif
Url : http://openajax.org/pipermail/ide/attachments/20080805/dee3c26d/attachment-0005.gif 


More information about the IDE mailing list