cplusplus / papers

ISO/IEC JTC1 SC22 WG21 paper scheduling and management
654 stars 18 forks source link

P1967 R12 #embed - a simple, scannable preprocessor-based resource acquisition method #700

Open wg21bot opened 4 years ago

wg21bot commented 4 years ago

P1967R0 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 4 years ago

P1967R1 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 4 years ago

P1967R2 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

jfbastien commented 4 years ago

Also see https://github.com/cplusplus/papers/issues/28

jfbastien commented 4 years ago

Discussed in today's EWG telecon.

Polls:

We want #embed [optional limit] header-name (no type name, no other specification) as a feature.

SF F N A SA
2 16 3 0 1

We want to explore allowing an optional sequence of tokens to specify a type to #embed.

SF F N A SA
1 9 4 4 3
wg21bot commented 3 years ago

P1967R3 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 3 years ago

P1967R4 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

AaronBallman commented 2 years ago

This paper has progressed within WG14 and WG21 and no longer needs SG22 involvement unless the author desires it, so removing the label.

wg21bot commented 2 years ago

P1967R5 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 2 years ago

P1967R6 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

erichkeane commented 2 years ago

D1967(To be R7) was discussed during the EWG 6/23/2022 Telecon, and the following poll was taken:

EWG encourages P1967 to define the form of vendor extensions as parameters to #embed? SF F N A SA
4 4 3 1 0

Result: Consensus

Author expected to return with a revisioned paper based on the feedback received during this meeting.

wg21bot commented 2 years ago

P1967R7 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 2 years ago

P1967R8 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

wg21bot commented 2 years ago

P1967R9 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

erichkeane commented 2 years ago

Forward P1967R9, with both 'optional' sections included to CWG for inclusion in C++26. This is as WG14 accepted.

SF F N A SA
7 5 2 2 2

Result: Stronger Consensus

Forward P1967R9, including section 7.3.6 (__has_embed with return value 2), but not 7.3.7 (prefix/suffix/if_empty) to CWG for inclusion in C++26. This diverges from what was accepted by WG14.

SF F N A SA
6 6 4 3 2

Result: Weaker Consensus

The former poll has greater consensus, so EWG is forwarding P1967R9 and both optional sections.

jensmaurer commented 1 year ago

The author intends to add preprocessor constants __STDC_EMBED_NOT_FOUND__, __STDC_EMBED_FOUND__, and __STDC_EMBED_EMPTY__. Back to EWG for approval of that change.

wg21bot commented 1 year ago

P1967R10 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

erichkeane commented 1 year ago

This was discussed during the Feb 6, 2023 Morning Session in Issaquah, and the following polls were taken:

P1967 should include the macro'ed textual versions of has-embed-expressions results, as proposed (and as accepted by WG14). SF F N A SA
20 12 2 1 0

Result: Consensus

P1967 should remove embed-standard-parameter 'prefix', 'suffix', and/or 'if_empty', if WG14 also chooses to do so, for the purposes of C compatibility of this feature. SF F N A SA
7 17 6 0 3

Result: Consensus

Forward P1967R10 (as modified by the above polls/WG14) to CWG. SF F N A SA

Result: Unanimous Consent

jensmaurer commented 1 year ago

CWG 2023-02-08: Reviewed; needs updates.

wg21bot commented 1 year ago

P1967R11 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide)

jensmaurer commented 1 year ago

CWG 2023-11-06: Reviewed; needs updates.

jensmaurer commented 1 year ago

CWG 2023-11-09: Reviewed; needs updates.

wg21bot commented 10 months ago

P1967R12 #embed - a simple, scannable preprocessor-based resource acquisition method (JeanHeyd Meneide, )

IRainman commented 4 months ago

I'm waiting for it, since 2002, and I really suffer every time that I need it and completely don't understand why that very simple feature doesn't include in C++ before.

jensmaurer commented 4 months ago

This issue tracker is for administrative handling of papers by WG21 officers and chairs. If you have specific concerns about a paper, please address the paper author directly.

jensmaurer commented 1 week ago

Author reports additional updates to the paper are necessary.