C++ Logo

std-proposals

Advanced search

Re: [std-proposals] void type instantiations

From: Sébastien Bini <sebastien.bini_at_[hidden]>
Date: Fri, 14 Oct 2022 11:30:25 +0200
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0146r1.html ?

On Fri, Oct 14, 2022 at 4:36 AM <std-proposals-request_at_[hidden]>
wrote:

> Send Std-Proposals mailing list submissions to
> std-proposals_at_[hidden]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> or, via email, send a message with subject or body 'help' to
> std-proposals-request_at_[hidden]
>
> You can reach the person managing the list at
> std-proposals-owner_at_[hidden]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Std-Proposals digest..."
>
>
> Today's Topics:
>
> 1. void type instantiations (Phil Bouchard)
> 2. Re: void type instantiations (connor horman)
> 3. Re: void type instantiations (Phil Bouchard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 13 Oct 2022 22:27:04 -0400
> From: Phil Bouchard <boost_at_[hidden]>
> To: Std-Proposals_at_[hidden]
> Subject: [std-proposals] void type instantiations
> Message-ID: <4eec2489-2638-b3a0-ecfc-ceacfbf256a8_at_[hidden]>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Greetings,
>
> Here's a simple suggestion: void type instantiations. It would be quite
> useful for singletons and keeping the code cleaner:
>
>
> int avcodec(...)
> {
>
> ??? static void r1 = avcodec_register_all();
> ??? static void r2 = av_register_all();
>
> ??? [...]
>
> }
>
>
> Regards,
>
> --
> Email Signature
> Logo <https://www.fornux.com/>
> *Phil Bouchard* facebook icon
> <https://www.linkedin.com/in/phil-bouchard-5723a910/>
> CTO
> T: (819) 328-4743
> E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
> 1188 rue Saint-Louis| Gatineau (Qc), J8T 2L8 Canada
>
> Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les
> documents l'accompagnant, sont destin?s uniquement aux personnes
> identifi?es et peuvent contenir des informations privil?gi?es,
> confidentielles ou ne pouvant ?tre divulgu?es. Si vous avez re?u ce
> message par erreur, veuillez le d?truire.
> This communication (and/or the attachments) is intended for named
> recipients only and may contain privileged or confidential information
> which is not to be disclosed. If you received this communication by
> mistake please destroy all copies.
> -------------- next part --------------
> HTML attachment scrubbed and removed
>
> ------------------------------
>
> Message: 2
> Date: Thu, 13 Oct 2022 22:34:54 -0400
> From: connor horman <chorman64_at_[hidden]>
> To: std-proposals_at_[hidden]
> Subject: Re: [std-proposals] void type instantiations
> Message-ID:
> <CADLV35jKDDQHSOVY1+syiQU5ge835x3R=
> FnqyrcnBntdo6sS2A_at_[hidden]>
> Content-Type: text/plain; charset="utf-8"
>
> Would this not be in line with the "normal void" proposal? That would allow
> `void` being a field type.
>
> On Thu, 13 Oct 2022 at 22:27, Phil Bouchard via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
> > Greetings,
> >
> > Here's a simple suggestion: void type instantiations. It would be quite
> > useful for singletons and keeping the code cleaner:
> >
> >
> > int avcodec(...)
> > {
> >
> > static void r1 = avcodec_register_all();
> > static void r2 = av_register_all();
> >
> > [...]
> >
> > }
> >
> >
> > Regards,
> > --
> > [image: Logo] <https://www.fornux.com/>
> > *Phil Bouchard* [image: facebook icon]
> > <https://www.linkedin.com/in/phil-bouchard-5723a910/>
> > CTO
> > T: (819) 328-4743
> > E: phil_at_[hidden] | www.fornux.com
> > 1188 rue Saint-Louis | Gatineau (Qc), J8T 2L8 Canada
> > [image: Banner] <https://goglobalawards.org/> Le message ci-dessus,
> ainsi
> > que les documents l'accompagnant, sont destin?s uniquement aux personnes
> > identifi?es et peuvent contenir des informations privil?gi?es,
> > confidentielles ou ne pouvant ?tre divulgu?es. Si vous avez re?u ce
> message
> > par erreur, veuillez le d?truire.
> > This communication (and/or the attachments) is intended for named
> > recipients only and may contain privileged or confidential information
> > which is not to be disclosed. If you received this communication by
> mistake
> > please destroy all copies.
> > --
> > Std-Proposals mailing list
> > Std-Proposals_at_[hidden]
> > https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> >
> -------------- next part --------------
> HTML attachment scrubbed and removed
>
> ------------------------------
>
> Message: 3
> Date: Thu, 13 Oct 2022 22:36:19 -0400
> From: Phil Bouchard <boost_at_[hidden]>
> To: std-proposals_at_[hidden]
> Subject: Re: [std-proposals] void type instantiations
> Message-ID: <237fc78a-805e-c125-1c52-b228f87f78e4_at_[hidden]>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> I didn't know there was already a proposal for it.
>
>
> On 10/13/22 22:34, connor horman via Std-Proposals wrote:
> > Would this not be in line with the "normal void" proposal? That would
> > allow `void` being a field type.
> >
> > On Thu, 13 Oct 2022 at 22:27, Phil Bouchard via Std-Proposals
> > <std-proposals_at_[hidden]> wrote:
> >
> > Greetings,
> >
> > Here's a simple suggestion: void type instantiations. It would be
> > quite useful for singletons and keeping the code cleaner:
> >
> >
> > int avcodec(...)
> > {
> >
> > ??? static void r1 = avcodec_register_all();
> > ??? static void r2 = av_register_all();
> >
> > ??? [...]
> >
> > }
> >
> >
> > Regards,
> >
> > --
> > Logo <https://www.fornux.com/>
> > *Phil Bouchard* facebook icon
> > <https://www.linkedin.com/in/phil-bouchard-5723a910/>
> > CTO
> > T: (819) 328-4743
> > E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
> > 1188 rue Saint-Louis| Gatineau (Qc), J8T 2L8 Canada
> >
> > Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi
> > que les documents l'accompagnant, sont destin?s uniquement aux
> > personnes identifi?es et peuvent contenir des informations
> > privil?gi?es, confidentielles ou ne pouvant ?tre divulgu?es. Si
> > vous avez re?u ce message par erreur, veuillez le d?truire.
> > This communication (and/or the attachments) is intended for named
> > recipients only and may contain privileged or confidential
> > information which is not to be disclosed. If you received this
> > communication by mistake please destroy all copies.
> >
> > --
> > Std-Proposals mailing list
> > Std-Proposals_at_[hidden]
> > https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> >
> >
> --
> Email Signature
> Logo <https://www.fornux.com/>
> *Phil Bouchard* facebook icon
> <https://www.linkedin.com/in/phil-bouchard-5723a910/>
> CTO
> T: (819) 328-4743
> E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
> 1188 rue Saint-Louis| Gatineau (Qc), J8T 2L8 Canada
>
> Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les
> documents l'accompagnant, sont destin?s uniquement aux personnes
> identifi?es et peuvent contenir des informations privil?gi?es,
> confidentielles ou ne pouvant ?tre divulgu?es. Si vous avez re?u ce
> message par erreur, veuillez le d?truire.
> This communication (and/or the attachments) is intended for named
> recipients only and may contain privileged or confidential information
> which is not to be disclosed. If you received this communication by
> mistake please destroy all copies.
> -------------- next part --------------
> HTML attachment scrubbed and removed
>
> ------------------------------
>
> Subject: Digest Footer
>
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
>
> ------------------------------
>
> End of Std-Proposals Digest, Vol 43, Issue 23
> *********************************************
>

Received on 2022-10-14 09:30:38