Athena

C++Builder 3 Easter Eggs

The C++Builder 3 Easter Eggs are much the same as those found in Delphi 3.

However, there are three additional ones.

  1. Run the command-line compiler with the undocumented -Team command-line switch, and the compiler team is listed:

    C:\Tools\CBuilder3\Bin>bcc32 -Team
    Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland International
    
        It's the compiler team!
    
            Peter Sollich
            Keimpe Bronkhorst
            John Wiegley
            Jesper Boelsmand
            Herbert Czymontek
            Eli Boling
    
    Error: Incorrect command line option: -Team
  2. Use of the undocumented #pragma curious_george directive in a source file gives you a special message.
    #pragma curious_george
    int main()
    {
      return 0;
    }
    C:\Tools\CBuilder3\Bin>bcc32 egg.cpp
    Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland
    egg.cpp:
    No eating puzzle pieces!

    This message will only be displayed in the IDE if the Show general messages option on the Compiler page of the project options dialog is checked.

  3. Use of the undocumented #pragma gpfault prettyplease directive in a source file gives you what you ask for.
    #pragma gpfault prettyplease
    int main()
    {
      return 0;
    }
    E:\Tools\CBuilder3\Bin>bcc32 egg.cpp
    Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland International
    c:egg.cpp:
    Fatal c:egg.cpp 3: Internal compiler error at 0x42af63 with base 0x400000
    Fatal c:egg.cpp 3: Internal compiler error

    This option appears to be used to test the resilience of the IDE against Access Violations. If you compile a source file like this in the IDE, the initial compilation and any use of Code Completion (which invokes a partial background compilation) will give similar errors.


Click here to return to the Easter Eggs main page