C++ Logo


Advanced search

Re: [SG15] [isocpp-modules] Determining identity like #pragma once

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Wed, 10 Jul 2019 16:43:55 +0000
> On Jul 10, 2019, at 6:10 AM, Nathan Sidwell <nathan_at_[hidden]> wrote:
>> On 7/9/19 10:03 PM, Rene Rivera wrote:
>> On Tue, Jul 9, 2019 at 7:48 PM Gabriel Dos Reis via SG15 <sg15_at_[hidden] <mailto:sg15_at_[hidden]>> wrote:
>> I agree.
>> Also, we should note that import and #include of the same file can
>> lead to unexpected results, so we need both clarifications and
>> recommendations there for users.
>> If it's unexpected why not make it an error?
> by #include you mean textual, not translated, #include, right?


> This is an existing problem with header files[*]. Each header unit is backed by such a header file. It would seem implementations could (should?) use the exact same heuristic.

The combination presents sufficient user concerns about usability that I think we need to have a second look.

> nathan
> [*] need not be a file. same logic follows though, just pretend it comes from some hidden file system?
> --
> Nathan Sidwell
> _______________________________________________
> Modules mailing list
> Modules_at_[hidden]
> Subscription: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.isocpp.org%2Fmailman%2Flistinfo.cgi%2Fmodules&amp;data=02%7C01%7Cgdr%40microsoft.com%7C37107662353449d08fc508d70537eeba%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636983610116091436&amp;sdata=FaiKawTaDDzQ7i%2FRzD6gc6EsmKwLoo1qv%2FkheolRXt4%3D&amp;reserved=0
> Link to this post: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.isocpp.org%2Fmodules%2F2019%2F07%2F0478.php&amp;data=02%7C01%7Cgdr%40microsoft.com%7C37107662353449d08fc508d70537eeba%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636983610116091436&amp;sdata=sD4UQlOGVXl56FxxRBUnf%2Bs8K78U7GFm7vbOzumOfio%3D&amp;reserved=0

Received on 2019-07-10 11:45:50