Last update January 22, 2007

Doc Comments /
Cto D



Converting C to D

More Information

in the Primitive Types, can you list the primitive's storage type (1 bit, 16 bit, 32 bit, 64 bit, 80 bit, etc etc?) -- anon

Here's some more info for integers:

D TypeMinMaxSize (bytes)
ubyte02551
ushort065,5352
uint04,294,967,2954
ulong018,446,744,073,709,551,6158
byte-1281271
short-32,76832,7672
int-2,147,483,6482,147,483,6474
long-9,223,372,036,854,775,8089,223,372,036,854,775,8078

Source: Data Types Example

A longer list is at: DigitalMars:d/type.html.

-- JustinCalvarese

Message

Add your comments here...

Links

Corresponding page in the D Specification
FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 22, 2007 22:33 (diff))