A solution to the multiple inclusion problem

Rahul Dhesi dhesi at sunscreen.UUCP
Mon Oct 30 12:07:23 AEST 1989


In article <1087 at odin.SGI.COM> shap at delrey.sgi.com (Jonathan Shapiro) writes:
>The current most widley accepted solution for single inclusion is to
>insert a pragma into the header file:
>
>   #pragma once

A serious mistake, because this pragma can affect the meaning of a
program, and therefore cannot be safely ignored.

Rahul Dhesi <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi
Use above addresses--email sent here via Sun.com will probably bounce.



More information about the Comp.lang.c mailing list