John Colvin:
(You can't define a staticZip in D?)
You can. I hope it will end up in in std.meta, along with a
whole load of other such goodies that I've been working on :)
Is the code for staticZip somewhere online?
Bye,
bearophile
Ali Çehreli:
DMD64 D Compiler v2.066-devel-1a70764 prints the following for
me:
0.500 0.500
0.500 0.500
0.500 0.500
Maybe a bug fixed?
Probably yes, thank for all the answers :-)
Bye,
bearophile
On Friday, 14 March 2014 at 17:10:53 UTC, John Colvin wrote:
On Friday, 14 March 2014 at 16:38:00 UTC, bearophile wrote:
This comes from a Rosettacode entry:
http://rosettacode.org/wiki/First-class_functions#D
import std.stdio, std.math, std.typetuple, std.functional;
enum static sin = (in r
On Friday, 14 March 2014 at 16:38:00 UTC, bearophile wrote:
This comes from a Rosettacode entry:
http://rosettacode.org/wiki/First-class_functions#D
import std.stdio, std.math, std.typetuple, std.functional;
enum static sin = (in real x) pure nothrow => std.math.sin(x),
asin = (in
On 03/14/2014 09:37 AM, bearophile wrote:
This comes from a Rosettacode entry:
http://rosettacode.org/wiki/First-class_functions#D
import std.stdio, std.math, std.typetuple, std.functional;
enum static sin = (in real x) pure nothrow => std.math.sin(x),
asin = (in real x) pure not
This comes from a Rosettacode entry:
http://rosettacode.org/wiki/First-class_functions#D
import std.stdio, std.math, std.typetuple, std.functional;
enum static sin = (in real x) pure nothrow => std.math.sin(x),
asin = (in real x) pure nothrow => std.math.asin(x),
cos =