[CLucene-dev] the importance of -ansi

Thiago Macieira thiago at kde.org
Sun Jun 17 10:55:39 BST 2007


Ben van Klinken wrote:
>Thanks Jos, will keep it in mind. I do recall some issues with the
>floats and doubles. But I'm still not sure how you are supposed to use
>these definitions correctly.
>
>An insightful remark about sending me back to school :-)... to be
>truthful, this was a project I used to learn c++ many years ago... no
>doubt it could have been done better.
>
>it's interesting that someone writing a mathdef.h makes the same
>mistakes as i did... no wonder i learnt bad habits, since they way i
>learnt was by looking at other people's code :) live and learn I
>say...
>
>A major refactor of CLucene would be a nice thing to see. Especially
>if it came out being equivalent to lucene 2.1. But as Jos points out,
>there's a lot of time required to do something like that... these days
>its hard for me to find any time for CLucene. However, anyone
>interested in taking up a task like this would get my full support!

I'm not asking for a major refactor.

I'm asking for classes that don't change sizes or virtual table layouts 
(not the case) once installed. The easiest way is to remove all #ifdef 
logic from installed files.

I'm not saying you can't use different bases or different memory tracking 
mechanisms. But please make that a compile-time definition. Install 
generated headers that don't change if someone defines _DEBUG or 
something else.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070617/195ce240/attachment.sig>


More information about the kde-core-devel mailing list