Logo

Programming-Idioms

History of Idiom 109 > diff from v6 to v7

Edit summary for version 7 by :
[D] Blank imports

Version 6

2016-01-15, 16:08:00

Version 7

2016-01-21, 09:21:13

Idiom #109 Number of bytes of a type

Set n to the number of bytes of a variable of type T.
This makes different sense (if any), depending on the language.

Idiom #109 Number of bytes of a type

Set n to the number of bytes of a variable of type T.
This makes different sense (if any), depending on the language.

Imports
	
Imports
Code
auto n = T.sizeof;
Code
auto n = T.sizeof;
Doc URL
http://dlang.org/ctod.html#sizeof
Doc URL
http://dlang.org/ctod.html#sizeof