Re: classes, strings, learning in VS.NET
- Next message: Christoph Rabel: "Re: classes, strings, learning in VS.NET"
- Previous message: Peter van Merkerk: "Re: classes, strings, learning in VS.NET"
- In reply to: Allan Bruce: "Re: classes, strings, learning in VS.NET"
- Next in thread: An Ony: "Re: classes, strings, learning in VS.NET"
- Reply: An Ony: "Re: classes, strings, learning in VS.NET"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Date: Tue, 02 Dec 2003 16:24:34 +0100
Allan Bruce wrote:
> Since the OP is using VS, he could merely have
> #pragma once
> at the top of the headers, thus not needing to check #ifdef etc.
But the #ifdef is the normal and correct way to do this. The pragma you
stated is MS specific and only works with their compiler.
Dont you agree that its better to teach the OP to program in Standard
C++ than in a compiler specific dialect?
have a nice day,
Christoph
- Next message: Christoph Rabel: "Re: classes, strings, learning in VS.NET"
- Previous message: Peter van Merkerk: "Re: classes, strings, learning in VS.NET"
- In reply to: Allan Bruce: "Re: classes, strings, learning in VS.NET"
- Next in thread: An Ony: "Re: classes, strings, learning in VS.NET"
- Reply: An Ony: "Re: classes, strings, learning in VS.NET"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Relevant Pages
- Re: classes, strings, learning in VS.NET
... > at the top of the headers, thus not needing to check #ifdef etc. ... The advantage of #pragma once is that the compiler ... But it's a compiler extension and the canonical way ... (comp.lang.cpp) - Re: include file question
... Where did you read that #pragma once is obsolete? ... because it suggests that what you need is some kind of weird compiler hack to make your ... inside the header file to prevent multiple execution of the contents. ... documentation about Objective C, which is a language which is NOT the C++ language, has ... (microsoft.public.vc.mfc) - Re: include file question
... First off I first read that you could keep the compiler ... But then I read that #pragma once is obsolete? ... The #include guards are portable since the beginning of time, ... Note that some headers use neither because they are ... (microsoft.public.vc.mfc) - Re: Ada checks suppression thanks to compilation options and Ada conformity
... One text book describes "pragma" as a "directive to the ... the compiler -- and indicate that compilers are allowed to ignore ... But this doens't apply to pragma Suppress, ... specify a compiler command-line option to suppress all checks, ... (comp.lang.ada) - pragma Pathway - optimising optimizing profiling
... I'd like to ask people's comments about another pragma I intend to ... code based on the gathered profiling data. ... rather in terms of some intermediate form derived by the compiler ... executional pathway through the program by name. ... (comp.lang.ada) |
|