220 35656 <ovp5tc$g28$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bo Persson <bop@gmb.dk>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: pragma once
Date: Thu, 30 Nov 2017 15:51:30 +0100
Lines: 28
Approved: news@gmane.org
Message-ID: <ovp5tc$g28$1@blaine.gmane.org>
References: <CAGz9X0c=CNLVEGgJ7=GJ2W+7fsvN7h+tbiFyf5Cx3aab0Xb=rQ@mail.gmail.com>
 <3d275c24-dc31-4fa7-a6db-e235ab2e00f1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format=flowed
X-Trace: blaine.gmane.org 1512053514 22672 195.159.176.226 (30 Nov 2017 14:51:54 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 30 Nov 2017 14:51:54 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.5.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCZ6RLW3UIKBBAFWQDIQKGQEIVCTW4Y@isocpp.org Thu Nov 30 15:51:45 2017
Return-path: <std-proposals+bncBCZ6RLW3UIKBBAFWQDIQKGQEIVCTW4Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCZ6RLW3UIKBBAFWQDIQKGQEIVCTW4Y@isocpp.org>)
	id 1eKQBe-000533-O2
	for gclcip-std-proposals@m.gmane.org; Thu, 30 Nov 2017 15:51:38 +0100
Original-Received: by mail-lf0-f69.google.com with SMTP id h81sf1789350lfh.23
        for <gclcip-std-proposals@m.gmane.org>; Thu, 30 Nov 2017 06:51:46 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1512053506; cv=pass;
        d=google.com; s=arc-20160816;
        b=yJI9TnwN6OeeEP/9JL9lmhXpdv1CT8O2pAPDz1l/E0HixF+J7tPtq2WKV0gik2jqq3
         frQ5aOo0+ikt7xAQg4V56sXdamMN9feig3U+/cPYXaIoJn93MDE4XFgNVyEy5RtqZdZj
         3knxWecHJWI4ZFcDb5791pPYZz9g2vftv5W7BBZa6fEKw9atuUkhQl6y0OPdg1tIyBue
         lW8il8MvgziNRf3h7SsCJCsPhiwio90KejSXvw02KU36/SIglGhBLAty2hk8SsKwMMDi
         NgduRrcJVLnKqaLd41wCI56jvbn2oIBimOnapsx9jLyqv/emCCpSTdoAPU/X3M02QYNc
         jy+g==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:content-language
         :in-reply-to:user-agent:mime-version:references:message-id:lines
         :date:subject:from:to:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=6sPyf4kf3YGNvG5pw+BmkKLhC/rzWOM/mMafHRxwj6c=;
        b=vg3Mo21ToUi78bVO6GAXJ2suqZ+GJpzhWcG2v/vtcr6ZdfvO7W5KGINtV7i2qeKEpn
         z+MzjJ8az6V277jXhK6l9F9Ma3iCQSqTRwXGSobqQwoqS8WPYm0IgRk8EOKj0yhsc7Ix
         nsTxYdUjxRZrlNcZ8YpDFRayQB7uIRP0waMLX8MrGbkc/qHbYCRtvwIvgBHxJNhLgYuw
         MyvnFj2CGasb/u2qEDnZI4mwjUwDTsXGZDMQB9LeXQZZBpWajEpS7qWi9fkXyOKmPp9u
         FiHVbiqwpz7Mwe++u9p7M4AGFUCJVvg03a3mWYdxZ88ef9Q/SbVdoAMuLUlFFn6in8Qg
         VOCA 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :user-agent:in-reply-to:content-language:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=6sPyf4kf3YGNvG5pw+BmkKLhC/rzWOM/mMafHRxwj6c=;
        b=jaPFVGqox3LRI7CDVoRIHp7wbMu/3C+IypZzxC1/NGfMOxq61zYlgGugsG3c27+KyX
         fn6vosNnv/RiNguJqvbjR7UvQgvE5nA7AXXU/eLAFAO+jd0wvsBgNZ5//aRDYXImTgyx
         ghrNB7I4XyH/Hb4BxT/fpbkVOP7UG+O/8PPAV+eoeOlt0wsGfX22w+rR5OCjRgZqAeYF
         s8J73rLE7f1jf8XfLpn/gJcg+lfXvoAj8KAkOPlkeJlLcIWnPXj25VMYSlQgIl66F+d+
         R81unADeGtaem1JyZWeqE7zfyroCVYlmlcZ51lOCg15r0+SGcYRqlBCX+RUE085qxYLG
         C5MA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-to:content-language
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=6sPyf4kf3YGNvG5pw+BmkKLhC/rzWOM/mMafHRxwj6c=;
        b=hgY5U8YFDfYqK92QzyJ6lPUUjiCZG9lOBTxcSyPyIfh3XPVVOMLW5X0sdZy7MUYePb
         CHLu0v6iPGn7795XT1IHCfMfQEHabiMdyTbAXj6/X2w8L/7BQR8f/5k5QJz8PoBW59rz
         AwVbjq5+aCi7FERBf3s41qvCllT64+ymTb+4xJMnWVc1sD6KBhjm6bE0UKlhvhzLhkBH
         ogZU8h+KWQFMv/9corSbeBfn+hDQwr8M58UQo4x0J3H8+HsnZuSeI1z4KZ4sJccIb4Yj
         rojdF1XyAZKHZDSLhfAMfpcX7YK3SK+5GseK3blRXYgU/LOEpQeGIq78lFpM44uIRMac
     
X-Gm-Message-State: AJaThX41M5JZHEB2dH5QL/u1aV6R2nMvTu17dSbOgsNpmQKN84I26XXI
	1Mb+E4uk+P3ppyGz7guu09Y=
X-Google-Smtp-Source: AGs4zMZs4TMcX2Tn1pbbqZ164DwvG7H1FsFNyQ2tSi6cDiXQpidvrRM5Q9ZWlVQUpWVTa29vhqpr+A==
X-Received: by 10.25.233.18 with SMTP id g18mr246617lfh.1.1512053506375;
        Thu, 30 Nov 2017 06:51:46 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.46.4.83 with SMTP id 80ls1768696lje.12.gmail; Thu, 30 Nov 2017
 06:51:44 -0800 (PST)
X-Received: by 10.46.88.68 with SMTP id x4mr3266314ljd.138.1512053504449;
        Thu, 30 Nov 2017 06:51:44 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1512053504; cv=none;
        d=google.com; s=arc-20160816;
        b=tgeWPGSJAJnMOPDHHe9Xrn7RS3XWLiMOUCKvrE6GqSJTim2r4URaNbSFvDgqvS93Ni
         MrupgDhYhjfCu3LZlPrGEFRdyA03TuLdYgcOp6UBGpFumSIsRR5444HvokgUgHU/IP1l
         Q0MJQatUfRPZIb8ADwOwoqMwEoW6+PcXp8obg4Njt5aiXLy9prdqWHwlOyzSnDMIwdaO
         Zj4xD/ubE7r9BdWviUVTvQ40mvIkauvjTlS7XdX9x8DS2L9izk2bLTJuHYwznsVeaJt6
         PVMzeloXlA83YyXyocPWnrf4P9TthVs7PLeIKk9Sy10UxleLAbxcDuTqDC9spRC8cQCh
         nkVw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:in-reply-to:user-agent:content-transfer-encoding
         :mime-version:references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=05P1Jg4LbsDCgHS4g76uW7IUDwmhEmaHvBAVJWLgzdc=;
        b=zaF1YvtIPIlOJPn27pMxxfczXdK4iYMjCZdST9Sz0fXDSQwS+N4PnHXQAfOJ/UyWzn
         kQtR4Y9vGhxyA4E0wbhVhCSbKe81um+4UANXnPcFafDQ2W7bIKaO+WgLwQp3KjVMYD35
         h+e+4Ukwwr3u+mqdb1BmAImsxhr3A4NL9iWo19H+T1tqhM91lXZ0rJFR0fa4T6krpPwy
         JLdk9AoXRNcDKxAA0h1866ubzpT0BegnPAJGgZDTsiTbJzRQf2+Na/GuNQOFKRdbVspS
         rzxFx5aGZn9qHk8G2ZaPAYE37XC/FXP+Lpwi5BP/B//gpikVewkcok/TR57H3fYPirpV
         Thzg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id t4si1467751lfd.449.2017.11.30.06.51.44
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 30 Nov 2017 06:51:44 -0800 (PST)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1eKQBX-0004cP-9a
	for std-proposals@isocpp.org; Thu, 30 Nov 2017 15:51:31 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 21
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <3d275c24-dc31-4fa7-a6db-e235ab2e00f1@isocpp.org>
Content-Language: sv
X-Original-Sender: gclcip-std-proposals@m.gmane.org
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35656
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35656>

On 2017-11-30 15:33, kiruahxh@gmail.com wrote:
> +1 : #pragma once should be standardized.
> When working on projects with many classes, it's common to copy paste a 
> module (header/cpp) and to forget modifying the include guard.
> Then you have strange errors because the same include guard is defined 
> by different files.
> Pragra once doesn't have this problem.
> 

Pragma once has other problems, like nobody has cared to specify what it 
means on systems other than Linux and Windows.

And should the compiler writer be required to test the feature on every 
other file system that can possibly be mounted on your development system?


The copy-paste error with the include guard has the advantage that you 
can fix it yourself.


     Bo Persson

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/ovp5tc%24g28%241%40blaine.gmane.org.

.
