Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EDT:EGL Language Part Types"
Line 49: | Line 49: | ||
| bgcolor="#cccccc" | ''ExternalType''<br> | | bgcolor="#cccccc" | ''ExternalType''<br> | ||
| <br> | | <br> | ||
− | | <br> | + | | done<br> |
| <br> | | <br> | ||
| <br> | | <br> | ||
Line 61: | Line 61: | ||
| bgcolor="#cccccc" | ''Library''<br> | | bgcolor="#cccccc" | ''Library''<br> | ||
| <br> | | <br> | ||
− | | <br> | + | | done<br> |
| <br> | | <br> | ||
| <br> | | <br> | ||
Line 116: | Line 116: | ||
'''Notes on Table 1'''<br> | '''Notes on Table 1'''<br> | ||
− | #<span style="background: | + | #<span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">In RBD a DataItem can only be used for primitive types. In EDT it can be used for any type.</span> |
#See also Table 2: Function Parameters. | #See also Table 2: Function Parameters. | ||
− | #Interfaces can be implemented by services <span style="background: | + | #Interfaces can be implemented by services <span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">and handlers (every kind of "logic part" which can be instantiated)</span>. |
− | #<span style="background: | + | #<span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">There are no called programs in EDT. Use libraries for "local calls" and services for "remote calls".</span> |
− | #<span style="background: | + | #<span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">We intend to support function overloading in all implementations, even JavaScript.</span> |
− | #<span style="background: | + | #<span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">Nullability means that a variable may really be null. It's not an "I'm null" flag like in RBD. A NullValueException will be thrown if you try to access a field or function of a null variable, even a record. A NullValueException will be thrown if a null variable is an operand to a math operator, an array access, a substring access, a comparison, or a bitwise operator.</span> The string concatenation operators will work the same as in RBD with respect to nulls. :: treats null as the empty string, and ?: results in null if either operand is null. <span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">A question mark won't be allowed on the second operand of the AS and ISA operators (the name of the type).</span> |
Revision as of 18:07, 13 July 2011
Please see the parent of this page, EDT:EGL_Language.
Part Types (Table 1)
Part Types | Core | JavaScript | Java | Debug |
DataItem1 | |
|
|
|
Function2, 5 | |
|
|
|
Top-level function2, 5 | |
|
|
|
Delegate2 | |
|
|
|
Record |
|
|
|
|
Structured Record |
|
N/S | N/S | N/S |
ExternalType |
|
done |
|
|
Handler |
|
|
|
|
Library |
|
done |
|
|
Service |
|
|
|
|
Interface3 |
|
|
|
|
Enumeration |
|
|
|
|
Program4 |
|
N/S |
|
|
Array |
|
|
|
|
Nullability6 |
|
|
|
|
DataTable |
|
N/S | N/S | N/S |
Form |
|
N/S | N/S | N/S |
Notes on Table 1
- In RBD a DataItem can only be used for primitive types. In EDT it can be used for any type.
- See also Table 2: Function Parameters.
- Interfaces can be implemented by services and handlers (every kind of "logic part" which can be instantiated).
- There are no called programs in EDT. Use libraries for "local calls" and services for "remote calls".
- We intend to support function overloading in all implementations, even JavaScript.
- Nullability means that a variable may really be null. It's not an "I'm null" flag like in RBD. A NullValueException will be thrown if you try to access a field or function of a null variable, even a record. A NullValueException will be thrown if a null variable is an operand to a math operator, an array access, a substring access, a comparison, or a bitwise operator. The string concatenation operators will work the same as in RBD with respect to nulls. :: treats null as the empty string, and ?: results in null if either operand is null. A question mark won't be allowed on the second operand of the AS and ISA operators (the name of the type).