Is sizeof() available in D language?

BoQsc vaidas.boqsc at gmail.com
Mon Sep 4 09:41:54 UTC 2023


I've seen everyone using **datatype**`.sizeof` property.

https://dlang.org/spec/property.html#sizeof

It's great, but I wonder if it differ in any way from the 
standard C function `sizeof()`.

https://www.geeksforgeeks.org/sizeof-operator-c/
https://en.cppreference.com/w/cpp/language/sizeof

I'm seeking for some speed/performance, so that's why the 
question.
Overall I'm alright with continuing using it.


More information about the Digitalmars-d-learn mailing list