D pointers

Thiago Macieira thiago at kde.org
Mon Oct 3 12:27:32 BST 2005


Alexander Neundorf wrote:
>> Besides that it probably doesn't hurt for integers and other primitive
>> types, but if you have more complex types you still waste constructor
>> and destructor time on them even if they're unused.
>
>They could be replaced with simple types of the same size.

You forgot:
"and the same padding and alignment constraints in all platforms"

So, no, don't try that for complex types.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

3. Ac seo woruld wearð geborod, swá se Scieppend cwæð "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051003/5ce4b9a2/attachment.sig>


More information about the kde-core-devel mailing list