![]() |
Blitz Devel : |
From: Peter Kümmel (syntheticpp_at_[hidden])
Date: 2005-06-17 05:13:04
Julian Cummings wrote:
> Hello Peter,
>
> Actually, the _HAVE_ is intentionally not there. In cases of C++ keywords
> that not all C++ compilers originally supported, blitz was written to use a
> macro to substitute for the keyword. If the compiler does not support that
> particular keyword, the macro is defined to nothing. Thus, BZ_EXPLICIT is
> either defined to "explicit" or "" (without the quotes), and then we use
> BZ_EXPLICIT in place of the keyword "explicit" eveywhere in the code. For
> the most part, such precautions are no longer necessary, as the C++ compiler
> writers have embraced almost all of the ANSI standard now.
>
> Regards, Julian C.
Hello Julian,
here a description how I was lead to the "out of date" conclusion.
Maybe I'm wrong, maybe it helps to improve the support of new compilers.
As stated at the and of the /compile/bzconfig script one should copy config.h
to /blitz/config.h. But this files is never used!
This don't cares if the compiler is already supported, or the environment
supports configure.
My problem was that I want to try the beta compiler of ms. Because
there is no configure under windows I run /compiler/bzconfig and
cp ../config.h, but I got still the error "/ms/bzconfig.h not found".
Because of the error I thought the intent of /compiler/bzconfig is to
generate this file, and I copied config.h to /ms/bzconfig.h, which doesn't
help.
I have to add the HAVE to the macro names.
To sum up:
- seems to me that /compiler/bzconfig is of no use
- if bzconfig should be used to generate bzconfig.h manually it must be changed
Regards,
Peter