C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 01 Sep 2024 08:50:34 -0700
On Sunday 1 September 2024 08:42:30 GMT-7 Tiago Freire wrote:
> > The standardisation would need to describe the actual system calls needed
> > to achieve identification.
> Would it?
> Maybe the problem is to try to define it in these terms.
> The way I see it, you don't have to.
> Even though same path= same file seems to be bare minimum, do we need to
> specify that we are reading a file from a filesystem? Do we want to even
> put on such constraints? Just say generic "same thing" and call it a day.
> Honestly, what else do you need to say?

As Tom's report showed, different implementations will come to different
conclusions of what "same file" is and thus will compile differently. IMNSHO, if
implementations have such different conclusions that do affect code generation
and even syntactical results, the feature is not properly standardised.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-09-01 15:50:37