From: John Freeman <jfreeman08@gmail.com>
To: Jason Merrill <jason@redhat.com>
Cc: Adam Butcher <adam@jessamine.co.uk>,
adam.butcher@selex-comms.com,
Esben Mose Hansen <kde@mosehansen.dk>,
gcc@gcc.gnu.org
Subject: Re: [lambda] Segmentation fault in simple lambda program
Date: Tue, 04 Aug 2009 04:39:00 -0000 [thread overview]
Message-ID: <4A77B4E2.8040301@gmail.com> (raw)
In-Reply-To: <4A77B130.2080302@redhat.com>
Jason Merrill wrote:
>> Experimenting with a working version and seeing it's issues will be
>> useful to me. To others to maybe. With concepts
>> gone from C++0x and being reworked for C++15(?) maybe support for
>> polymorphic lambdas could be reintroduced? -- though
>> I'm sure its much too late for that and that its likely been around
>> the buoy many times. From what I have read I got
>> the idea that the Callable concept was the primary reason for
>> polymorphic lambdas not being accepted.
>
> I don't know what the reasoning was there, but people have been
> somewhat conservative about what usages of lambdas are allowed for
> fear of unforseen implementation issues. Certainly having a working
> implementation would go a lot toward convincing people to allow it,
> even if it doesn't make it into C++0x.
There were several issues with polymorphic lambdas in the presence of
concepts that concerned many on the committee. I've come to accept that
it's too late to re-introduce polymorphic lambdas into C++0x (now
C++1x), but there's no stopping GCC from implementing it as an extension.
>
>
>> Implied template typename arguments via auto are not currently
>> supported. The syntax parses but I haven't yet
>> synthesized the template arguments and therefore not replaced the
>> auto's with them so it doesn't compile.
>
> Since templates work so differently from normal functions, I'm a
> little uncomfortable with the idea of templates that don't involve any
> template syntax, just the use of auto in the parameter list. But I'm
> open to giving it a try, at least in the lambda context. Maybe
> outside of lambda it could be used with a small template introducer...
Just my opinion, but I don't think there should be any special template
syntax. The whole point of argument deduction was terseness. It
doesn't have to be implemented using templates, so I don't equate it
with templates.
- John
next prev parent reply other threads:[~2009-08-04 4:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1248855585.29221.ezmlm@gcc.gnu.org>
2009-07-29 10:27 ` Adam Butcher
2009-07-29 14:17 ` Ed Smith-Rowland
2009-08-03 18:31 ` Jason Merrill
2009-08-04 2:25 ` Adam Butcher
2009-08-04 4:11 ` Jason Merrill
2009-08-04 4:39 ` John Freeman [this message]
2009-08-04 5:39 ` John Freeman
2009-08-04 15:33 ` Richard Henderson
2009-08-04 22:45 ` John Freeman
2009-08-06 12:40 ` Adam Butcher
2009-08-04 9:07 ` Adam Butcher
2009-08-04 13:35 ` Adam Butcher
2009-08-04 13:44 ` John Freeman
2009-08-04 14:18 ` Jason Merrill
2009-08-04 14:46 ` John Freeman
2009-08-04 14:57 ` Jason Merrill
2009-08-04 16:14 ` John Freeman
2009-08-04 14:49 ` Jason Merrill
2009-08-04 16:17 ` John Freeman
2009-08-06 13:52 John Freeman
-- strict thread matches above, loose matches on Subject: below --
2009-04-30 19:43 Smith-Rowland, Edward M
2009-04-30 21:57 ` Esben Mose Hansen
2009-04-29 22:07 Esben Mose Hansen
2009-04-30 11:54 ` Ian Lance Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A77B4E2.8040301@gmail.com \
--to=jfreeman08@gmail.com \
--cc=adam.butcher@selex-comms.com \
--cc=adam@jessamine.co.uk \
--cc=gcc@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=kde@mosehansen.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).