On Friday, 26 July 2013 at 05:54:50 UTC, Meta wrote:
Another question, I'm not all that familiar with unicode, so
what is the difference between std.uni.isNumber and
std.ascii.isNumber? Am I right in thinking that
std.uni.isNumber will match things outside of the basic 0..9?
Starting at
On Friday, 26 July 2013 at 05:26:33 UTC, anonymous wrote:
Should I always use std.uni.isWhite, unless I'm working with
bytes and byte arrays?
No, char vs byte isn't necessarily a thing here.
I realized after I posted this that I was being stupid in even
suggesting that, seeing as all the fun
On Friday, 26 July 2013 at 05:06:45 UTC, Jonathan M Davis wrote:
Unicode contains ASCII, but very few Unicode characters are
ASCII, because
there just aren't very many ASCII characters and there and a
_ton_ of Unicode
characters. The std.ascii functions return true for certain
sets of ASCII
cha
On Friday, 26 July 2013 at 04:09:46 UTC, Meta wrote:
I'm confused about which isWhite function I should use. Aren't
all chars in D (char, wchar, dchar) unicode characters?
They are.
Should I always use std.uni.isWhite, unless I'm working with
bytes and byte arrays?
No, char vs byte isn't ne
On 07/25/2013 04:55 PM, bearophile wrote:
Range-based functions see strings and char[] to arrays of dchar, but is
that behavour good for std.algorithm.copy too?
I find this a bit silly:
import std.algorithm: copy;
void main() {
char[5] arr1 = "hello", arr2;
arr1[].copy(arr2[]); // Er
On Friday, July 26, 2013 06:09:39 Meta wrote:
> I'm confused about which isWhite function I should use. Aren't
> all chars in D (char, wchar, dchar) unicode characters? Should I
> always use std.uni.isWhite, unless I'm working with bytes and
> byte arrays? The documentation doesn't give me much to
I'm confused about which isWhite function I should use. Aren't
all chars in D (char, wchar, dchar) unicode characters? Should I
always use std.uni.isWhite, unless I'm working with bytes and
byte arrays? The documentation doesn't give me much to go on,
beside "All of the functions in std.ascii a
Range-based functions see strings and char[] to arrays of dchar,
but is that behavour good for std.algorithm.copy too?
I find this a bit silly:
import std.algorithm: copy;
void main() {
char[5] arr1 = "hello", arr2;
arr1[].copy(arr2[]); // Error.
dchar[arr1.length] arr3;
arr1[]
This D entry uses Tango, but it should also show a version for
Phobos:
http://rosettacode.org/wiki/Rosetta_Code/Count_examples#D
Two versions
The Mathematica solution is short:
TaskList = Flatten[
Import["http://rosettacode.org/wiki/Category:Programming_Tasks";,
"Data"][[1, 1]]];
Prin
This D entry uses Tango, but it should also show a version for
Phobos:
http://rosettacode.org/wiki/Rosetta_Code/Count_examples#D
Bye,
bearophile
On Thu, Jul 25, 2013 at 08:15:42PM +0200, Gary Willoughby wrote:
> I've just read the article over at Dr Dobbs by Walter
>
> http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941
>
> and this line caught my eye:
>
> >Even if you know your code well, you're likely wrong about
I've just read the article over at Dr Dobbs by Walter
http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941
and this line caught my eye:
Even if you know your code well, you're likely wrong about where
the performance bottlenecks are. Use a profiler. If you haven't
used one
On Wednesday, 30 May 2012 at 08:13:34 UTC, Sputnik wrote:
There is a build and/or package managment system for D2 that is
working?
I googled, and I only can find things like dsss or cmaked that
don't get updated from a long time ago.
I really need to manage to get a project to compile in Windows
On Wednesday, 24 July 2013 at 11:26:32 UTC, Mike Parker wrote:
This is the exact behavior I would expect. I think of auto as
"this variable is going to be the same type as that variable."
Since in is const int, then j also is going to be const int. If
you want to copy n into a nonconst variable
14 matches
Mail list logo