On Sat, 28 Nov 2009, Szak�ts Viktor wrote:

Hi,

> Please note I haven't tested this on C5.2e, so it may 
> be Clipper compatible behavior, but anyway I just noticed 
> it today in repository, and felt better to report it:
> ---
> #ifdef MACRO
>   ? 1
> #else
>   ? 0
> ---
> Will not report any warning in Harbour. Probably it'd be 
> nicer if unclosed #if levels would be reported by compiler/PP.

It's Clipper compatible behavior and I intentionally replicated it.
In general it does not reports any warnings on unclosed conditional
structures.
There are also some other funny Clipper behavior I also replicated,
i.e. try this code:

   #ifdef MACRO
      ? "1"
   #else
      ? "2"
   #else
      ? "3"
   #else
      ? "4"
   #endif

If you want I can add warning messages for some of them if they can
be easy separated from the whole conditional compilation logic.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to