Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #676

Re: proposal : keyword default

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Bo Persson <bop@gmb.dk>
Newsgroups comp.std.c++
Subject Re: proposal : keyword default
Date Sat, 5 Oct 2013 19:19:45 -0700 (PDT)
Organization unknown
Lines 29
Sender std-cpp-request@vandevoorde.com
Approved james.dennett@gmail.com
Message-ID <bb9uhuF92kjU1@mid.individual.net> (permalink)
References <3c07b20c$1@master.soko.hr> <f7909d88-eef3-4c68-864f-09912789dc89@googlegroups.com> <FOOdncbkK9Y5uNPPnZ2dnUVZ_sKdnZ2d@earthlink.com>
NNTP-Posting-Host eUYdrAl/alJ603At4vIRKxIxmy3EfHf19EVV2pwtI/U=
Content-Type text/plain; charset=ISO-8859-1; format=flowed
X-Trace news.albasani.net qv7ALnR0S5WQ4S9kJZvowhey0q7DxFXRxjO3OfzNq7AIMR8qWkiOGDcj0LpFu9orzElONihYBsbyoNJNzd8fSA==
X-Complaints-To abuse@albasani.net
NNTP-Posting-Date Sun, 6 Oct 2013 02:19:48 +0000 (UTC)
X-Mailer Perl5 Mail::Internet v2.05
X-Submission-Address std-cpp-submit@vandevoorde.com
Cancel-Lock sha1:kkhpaDphsuGJEkZ1kihooDGmP1E=
X-Original-Date Sat, 05 Oct 2013 09:48:16 +0200
Xref csiph.com comp.std.c++:676

Show key headers only | View raw


Paul D. DeRocco skrev 2013-10-04 20:58:
>>
>> On 10/3/2013 3:25 PM, alexander.stoyan@googlemail.com wrote:
>>
>> Instead it would be elegant to just use:
>>
>> thread_t thr_id = 0;
>> make_thread(thread_function, default, default, default, &thr_id);
>
>
> I didn't see the earlier parts of this thread, so this may have come up.
> Has the idea of leaving out the arguments entirely come up? E.g.,
>
> make_thread(thread-function, , , , &thr_id);
>

I believe this has been considered, but seen as too error prone.

make_thread(thread_function,, my_params);  //  Oops wrong parameter!


Bo Persson


--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: proposal : keyword default alexander.stoyan@googlemail.com - 2013-10-03 13:25 -0600
  Re: proposal : keyword default Daniel Krügler <daniel.kruegler@googlemail.com> - 2013-10-04 11:19 -0700
  Re: proposal : keyword default "Paul D. DeRocco" <pderocco@ix.netcom.com> - 2013-10-04 11:58 -0700
    Re: proposal : keyword default Bo Persson <bop@gmb.dk> - 2013-10-05 19:19 -0700
      Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-07 01:50 -0600
    Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-05 19:19 -0700
      Re: proposal : keyword default Francis Glassborow <francis.glassborow@btinternet.com> - 2013-10-07 01:50 -0600
        Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-07 15:05 -0600
          Re: proposal : keyword default James Kuyper <jameskuyper@verizon.net> - 2013-10-08 12:36 -0700
          Re: proposal : keyword default Helmut Zeisel <zei2011@liwest.at> - 2013-10-12 03:47 -0600
            Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-12 11:36 -0600
              Re: proposal : keyword default ootiib@hot.ee - 2013-10-12 23:10 -0600
              Re: proposal : keyword default John Harris <niam@jghnorth.org.uk.invalid> - 2013-10-13 11:33 -0600
                Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-16 10:34 -0600
              Re: proposal : keyword default Helmut Zeisel <zei2011@liwest.at> - 2013-10-14 20:37 -0700
  Re: proposal : keyword default Alexander Terekhov <terekhov@web.de> - 2013-10-18 01:20 -0600

csiph-web