Comparison of Basic Instructions of Programming Languages

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Added type identifier info, as much as I know.)
(Added type info for floating types)
Line 8: Line 8:
 
== Comparison ==
 
== Comparison ==
  
The following tables compares technical information of the Unity programming languages. See also the [[Comparison of Basic Instructions of Programming Languages]] for more detailed information
+
The following tables compares technical information of the Unity programming languages. See also the [[Comparison of Programming Languages]] for general information.
  
 +
<!-- This table would be tons easier to read if we had tables styles with cell borders and header cell support. -->
 
{| style="margin: 1em; margin-left: 0; background: #f9f9f9; border: 1px #aaa solid;"
 
{| style="margin: 1em; margin-left: 0; background: #f9f9f9; border: 1px #aaa solid;"
 
|-  
 
|-  
Line 17: Line 18:
 
! UnityScript/[http://en.wikipedia.org/wiki/JavaScript JavaScript]
 
! UnityScript/[http://en.wikipedia.org/wiki/JavaScript JavaScript]
 
|-
 
|-
! [http://en.wikipedia.org/wiki/Integer_(computer_science) Integers] Type Identifiers
+
! [http://en.wikipedia.org/wiki/Integer_(computer_science) Integer] Type Identifiers
|
+
!
|
+
!
|
+
!
 
|-
 
|-
! 8 bit (byte) Signed
+
! 8 bit ([http://en.wikipedia.org/wiki/Byte byte]) Signed
 
|  
 
|  
 
| sbyte
 
| sbyte
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
! 8 bit (byte) Unsigned
+
! 8 bit ([http://en.wikipedia.org/wiki/Byte byte]) Unsigned
 
|  
 
|  
 
| byte
 
| byte
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
! 16 bit (short integer) Signed
+
! 16 bit ([http://en.wikipedia.org/wiki/Short_integer short integer]) Signed
|  
+
| short
 
| short
 
| short
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
! 16 bit (short integer) Unsigned
+
! 16 bit ([http://en.wikipedia.org/wiki/Short_integer short integer]) Unsigned
 
|  
 
|  
 
| ushort
 
| ushort
Line 43: Line 44:
 
|-
 
|-
 
! 32 bit Signed
 
! 32 bit Signed
|  
+
| int
 
| int
 
| int
 
| {{n/a}}
 
| {{n/a}}
Line 52: Line 53:
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
! 64 bit Signed
+
! 64 bit ([http://en.wikipedia.org/wiki/Long_integer long integer]) Signed
|  
+
| long
 
| long
 
| long
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
! 64 bit Unsigned
+
! 64 bit [http://en.wikipedia.org/wiki/Long_integer long integer]) Unsigned
 
|  
 
|  
 
| ulong
 
| ulong
 
| {{n/a}}
 
| {{n/a}}
 +
|-
 +
! [http://en.wikipedia.org/wiki/Floating_point Floating Point] Type Identifiers
 +
!
 +
!
 +
!
 +
|-
 +
! [http://en.wikipedia.org/wiki/Single_precision Single Precision]
 +
| single
 +
| float
 +
| {{n/a}}
 +
|-
 +
! [http://en.wikipedia.org/wiki/Double_precision Double Precision]
 +
| double
 +
| double
 +
| Number
 +
|-
 +
! Arbitrarily precise ([http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic bignum])
 +
| decimal
 +
|
 +
|
 
|}
 
|}
  

Revision as of 02:26, 3 August 2009

Basic instructions of the three high-level programming languages offered by Unity (JavaScript, C#, and Boo) are compared here.

Conventions of This Article

The bold is the literal code. The non-bold is interpreted by the reader. Statements in guillemets (« … ») are optional. tab indicates a necessary indent.


Comparison

The following tables compares technical information of the Unity programming languages. See also the Comparison of Programming Languages for general information.

Language Boo C# UnityScript/JavaScript
Integer Type Identifiers
8 bit (byte) Signed sbyte N/A
8 bit (byte) Unsigned byte N/A
16 bit (short integer) Signed short short N/A
16 bit (short integer) Unsigned ushort N/A
32 bit Signed int int N/A
32 bit Unsigned uint N/A
64 bit (long integer) Signed long long N/A
64 bit long integer) Unsigned ulong N/A
Floating Point Type Identifiers
Single Precision single float N/A
Double Precision double double Number
Arbitrarily precise (bignum) decimal



Programming Index

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox