Variable ValueTypes
SDL's datatypes map to D's datatypes as described below. Most are straightforward, but take special note of the date/time-related types.
Declaration
module sdlang_.token; // ... alias ValueTypes = function(bool, string, dchar, int, long, float, double, real, Date, DateTimeFrac, SysTime, DateTimeFracUnknownZone, Duration, ubyte[], typeof function(null)); // ...
Boolean
bool
Null
typeof(null) Unicode Character: dchar Double-Quote Unicode String: string Raw Backtick Unicode String: string Integer (32 bits signed): int Long Integer (64 bits signed): long Float (32 bits signed): float Double Float (64 bits signed): double Decimal (128+ bits signed): real Binary (standard Base64): ubyte[] Time Span: Duration
Date (with no time at all): Date Date Time (no timezone): DateTimeFrac
Date Time (with a known timezone): SysTime Date Time (with an unknown timezone): DateTimeFracUnknownZone