Thread: Compilation Firewalls

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Compilation Firewalls

    Hello everyone,


    Any ideas why Pimpl idiom is called "Compilation Firewalls"? :-)

    http://www.gotw.ca/gotw/024.htm

    I have thought for a while, and I think client code does not need to compile in Pimpl idiom, so like a firewall to block compile, it is called "Compilation Firewalls".

    Any ideas why it is named "Compilation Firewalls"?


    thanks in advance,
    George
    Last edited by George2; 03-15-2008 at 06:58 AM.

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    It is just a metaphor. A firewall is a fire-proof wall to stop fire from spreading. Pimpl is a technique to reduce code interdependencies and build times, it is a way to minimize what needs to be recompiled.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks anon,


    Question answered.

    Quote Originally Posted by anon View Post
    It is just a metaphor. A firewall is a fire-proof wall to stop fire from spreading. Pimpl is a technique to reduce code interdependencies and build times, it is a way to minimize what needs to be recompiled.

    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. all about cross compilation
    By munna_dude in forum Linux Programming
    Replies: 1
    Last Post: 08-27-2008, 04:15 AM
  2. "Different levels of indirection" compilation error
    By emanresu in forum C Programming
    Replies: 2
    Last Post: 11-22-2006, 05:01 AM
  3. Simple C++ Compilation Question
    By mercury529 in forum C++ Programming
    Replies: 14
    Last Post: 07-30-2006, 09:40 PM
  4. Inconsistent Compilation
    By GlassEyeSlim in forum Linux Programming
    Replies: 2
    Last Post: 02-23-2006, 06:43 PM
  5. MS VC++ Crash on compilation
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-23-2003, 07:06 PM