Logo

Programming-Idioms

History of Idiom 109 > diff from v4 to v5

Edit summary for version 5 by :
New D implementation by user [piou]

Version 4

2016-01-03, 23:27:17

Version 5

2016-01-09, 17:56:26

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
	
Code
auto n = T.sizeof;
Doc URL
http://dlang.org/ctod.html#sizeof