Differing part:
FNaNb xdZ d6
PFNaNbNfxdZxd6
P -> pointer
Nf -> @safe
x -> const
The second one is a function pointer not a function, is inferred to be
@safe, and inferred to return const(double).
"bearophile" wrote in message
news:jfs683$2mqh$1...@digitalmars.com...
> I'm asking questions
On Thu, Jan 26, 2012 at 01:32:35PM -0500, bearophile wrote:
[...]
> template TypeTuple(TList...) {
> alias TList TypeTuple;
> }
>
> double f1(in double x) pure nothrow { return x; }
> alias TypeTuple!(f1) funcs1;
>
> alias TypeTuple!(function(in double x) pure nothrow { return x; }) funcs2;
>
I'm asking questions all the time :-)
I have just closed this bug report as fixed:
http://d.puremagic.com/issues/show_bug.cgi?id=5695
Using that idiom I've seen a difference:
template TypeTuple(TList...) {
alias TList TypeTuple;
}
double f1(in double x) pure nothrow { return x; }
alias Typ