On Tuesday, 24 April 2012 at 01:51:54 UTC, Adam Wilson wrote:
On Wed, 18 Apr 2012 03:02:49 -0700, Robert Clipsham
wrote:
On 18/04/2012 09:18, "Erèbe" wrote:
Hi,
I recently discovered that D support file interface .di, but
through my
past reads I never seen someone using it. The std don't d
On 04/24/2012 03:21 AM, Martin Nowak wrote:
if(r.front == 'a' && (r.popFront(), r.front) == 'b') { ... }
There are a few similar usages in Phobos. If comma was to be used as a
tuple constructor instead, those could be replaced by ( , )[$-1].
Tuples with void elements?
Yes. They behave simila
On 04/22/2012 03:43 PM, Victor Vicente de Carvalho wrote:
Another option that crossed my mind was to do something like a
kickstarter funding to pay someone to do that fulltime. What you guys
think?
I think "FUCK YES". I would dump money on that. ;)
2012年4月24日2:49 Denis Shelomovskij :
> 23.04.2012 21:15, kenji hara написал:
>>
>> 2012年4月24日1:14 Denis Shelomovskij:
>>>
>>> 23.04.2012 18:54, kenji hara написал:
>>>
>>>
Please give us use cases. I cannot imagine why you want to
change/remove quotations but keep escaped contents.
>>>
>>>
On Tuesday, 24 April 2012 at 01:51:54 UTC, Adam Wilson wrote:
Where DI files come in handy is for commercial libraries that
don't want to hand out their source, without DI's that's
impossible, therefore for D to be a commercially acceptable
language, DI's must work, unfortunately, DI's do not
On Tuesday, April 24, 2012 01:01:57 James Miller wrote:
> I'm writing an introduction/tutorial to using strings in D,
> paying particular attention to the complexities of UTF-8 and 16.
> I realised that when you want the number of characters, you
> normally actually want to use walkLength, not leng
On Wed, 18 Apr 2012 03:02:49 -0700, Robert Clipsham
wrote:
On 18/04/2012 09:18, "Erèbe" wrote:
Hi,
I recently discovered that D support file interface .di, but through my
past reads I never seen someone using it. The std don't do usage of it
(compile time issue maybe ?) and most of D projec
James Miller:
Another option would be to have some sort of general lint tool
that picks up on these kinds of potential errors, though that
is a lot bigger scope...
Lot of people in D.learn don't even use "-wi -property" so go
figure how many will use a lint :-)
In first approximation you c
On Monday, 23 April 2012 at 23:52:41 UTC, bearophile wrote:
James Miller:
I realised that when you want the number of characters, you
normally actually want to use walkLength, not length.
As with strlen() in C, unfortunately the result of
walkLength(somestring) is computed every time you cal
Notes on bugs found by PVS-Studio in the Blender source code:
http://www.gamasutra.com/blogs/AndreyKarpov/20120423/169021/Analyzing_the_Blender_project_with_PVSStudio.php
#define DEFAULT_STREAM \
m[dC] = RAC(ccel,dC); \
\
if((!nbored & CFBnd)) { \
\
No one has impleme
if(r.front == 'a' && (r.popFront(), r.front) == 'b') { ... }
There are a few similar usages in Phobos. If comma was to be used as a
tuple constructor instead, those could be replaced by ( , )[$-1].
Tuples with void elements?
And if the first exp had a value one
wouldn't like to pay for the co
James Miller:
I realised that when you want the number of characters, you
normally actually want to use walkLength, not length.
As with strlen() in C, unfortunately the result of
walkLength(somestring) is computed every time you call it...
because it's doesn't get cached.
A partial improveme
On Monday, 23 April 2012 at 23:01:59 UTC, James Miller wrote:
Is is reasonable for the compiler to pick this up during
semantic analysis and point out this situation?
Maybe... but it is important that this works:
string s;
if(s.length)
do_something(s);
since that's always right and quite
I'm writing an introduction/tutorial to using strings in D,
paying particular attention to the complexities of UTF-8 and 16.
I realised that when you want the number of characters, you
normally actually want to use walkLength, not length. Is is
reasonable for the compiler to pick this up during
On 4/22/12 11:42 AM, Brad Anderson wrote:
That's really neat. We need to start making a catalog of interesting
stuff you can do in D.
We need descriptions in article or blog entry form, and then we collect
(links to) them on the website.
Andrei
BTW, More info for d-apt server at:
https://code.google.com/p/d-apt/wiki/APT_Repository#APT_Repository_for_D
On Sunday, 22 April 2012 at 18:32:09 UTC, Russel Winder wrote:
Mike,
On Sun, 2012-04-22 at 20:07 +0200, Mike Wey wrote:
[...]
Odd trying to download
http://d-apt.googlecode.com/files/./Packages with a browser or
wget completes without any errors.
http://d-apt.googlecode.com/files/./Packages
Unfortunately, my proposal was not picked up this year. I might try to work
on these ideas this summer anyway so I would still be very much interested
in ideas and feedback, but I will probably have much less time if I'll be
working somewhere else.
---
Cristi Cobzarenco
BSc in Artificial Intellige
23.04.2012 21:49, Denis Shelomovskij написал:
23.04.2012 21:15, kenji hara написал:
2012年4月24日1:14 Denis Shelomovskij:
23.04.2012 18:54, kenji hara написал:
Please give us use cases. I cannot imagine why you want to
change/remove quotations but keep escaped contents.
Sorry, I should mentio
On Sunday, 22 April 2012 at 02:51:29 UTC, Russel Winder wrote:
Being a Debian user I was interested in
https://code.google.com/p/d-apt/
but it seems the instructions for using this break since
http://d-apt.googlecode.com/files results in a 404.
This is a correct behaviour. If you want to lis
On 04/23/2012 01:44 PM, Steven Schveighoffer wrote:
On Sat, 21 Apr 2012 15:46:29 -0400, Mehrdad wrote:
alias int delegate(out ItemGetter next) ItemGetter;
We currently can't do the above^ in D, but what do people think about
allowing it?
i.e. More specifically, I think an alias expression sho
On 04/23/2012 05:17 AM, Xinok wrote:
I know this has probably been asked for a hundred times before, but I
don't understand why D doesn't support this. Template alias parameters
can accept nearly anything as an argument that standard aliases don't. I
think standard aliases should be equally as po
23.04.2012 21:15, kenji hara написал:
2012年4月24日1:14 Denis Shelomovskij:
23.04.2012 18:54, kenji hara написал:
Please give us use cases. I cannot imagine why you want to
change/remove quotations but keep escaped contents.
Sorry, I should mention that !' and !" are optional and aren't common
A couple of examples of earlier discussions:
http://www.digitalmars.com/d/archives/digitalmars/D/Non-enum_manifest_constants_Pie_in_the_sky_102248.html
http://www.digitalmars.com/d/archives/digitalmars/D/Manifest_constants_why_enum_instead_of_invariant_70595.html
2012年4月24日1:14 Denis Shelomovskij :
> 23.04.2012 18:54, kenji hara написал:
>
>> Please give us use cases. I cannot imagine why you want to
>> change/remove quotations but keep escaped contents.
>
>
> Sorry, I should mention that !' and !" are optional and aren't commonly
> used, and all !?* are ve
On Monday, 23 April 2012 at 14:53:38 UTC, Eldar Insafutdinov
wrote:
Which brings us to an interesting point that alias and enum
should be brought together:
alias x = 1;
alias y = int;
should replace current
enum x = 1;
alias int y;
respectively. This is makes it a consistent s
23.04.2012 18:54, kenji hara написал:
Please give us use cases. I cannot imagine why you want to
change/remove quotations but keep escaped contents.
Sorry, I should mention that !' and !" are optional and aren't commonly
used, and all !?* are very optional and are here just for completeness
(IM
On Apr 23, 2012, at 5:11 AM, Benjamin Thaut wrote:
> Am 23.04.2012 13:57, schrieb Steven Schveighoffer:
>> On Mon, 23 Apr 2012 02:41:21 -0400, Benjamin Thaut
>> wrote:
>>
>>> I wrote a small "bad example" program for a presentation. It calls
>>> malloc/free very frequently and I wanted to profi
On Monday, 23 April 2012 at 12:25:21 UTC, Peter Alexander wrote:
On Monday, 23 April 2012 at 03:17:49 UTC, Xinok wrote:
I know this has probably been asked for a hundred times
before, but I don't understand why D doesn't support this.
Template alias parameters can accept nearly anything as an
2012年4月23日21:36 Denis Shelomovskij :
> I've never used new excellent range formatting syntax by Kenji Hara until
> now. And I've met with difficulties, because "%(%(%c%), %)" is the most
> common format for string array for me and it neither obvious nor elegant. It
> occurs that "%c" disables chara
On Mon, 23 Apr 2012 15:44:01 +0200, Benjamin Thaut
wrote:
Am 23.04.2012 14:36, schrieb Kapps:
On Monday, 23 April 2012 at 12:11:19 UTC, Benjamin Thaut wrote:
If what you are saying is true, the deadlock must happen somewhere
else. This was kind of a assumption because the deadlock happend
Am 23.04.2012 14:36, schrieb Kapps:
On Monday, 23 April 2012 at 12:11:19 UTC, Benjamin Thaut wrote:
If what you are saying is true, the deadlock must happen somewhere
else. This was kind of a assumption because the deadlock happend after
I added all the malloc / free calls. Because all the thre
On 23-04-2012 11:38, CTFE-4-the-win wrote:
On Monday, 23 April 2012 at 08:08:52 UTC, Timon Gehr wrote:
On 04/23/2012 01:56 AM, deadalnix wrote:
Le 21/04/2012 18:54, bearophile a écrit :
Jonathan M Davis:
There have been discussions about the comma operator before. I don't
expect that it's go
On Mon, 23 Apr 2012 08:36:59 -0400, Kapps wrote:
On Monday, 23 April 2012 at 12:11:19 UTC, Benjamin Thaut wrote:
If what you are saying is true, the deadlock must happen somewhere
else. This was kind of a assumption because the deadlock happend after
I added all the malloc / free calls. B
On 23.04.2012 16:36, Denis Shelomovskij wrote:
I've never used new excellent range formatting syntax by Kenji Hara
until now. And I've met with difficulties, because "%(%(%c%), %)" is the
most common format for string array for me and it neither obvious nor
elegant. It occurs that "%c" disables c
Michel Fortin , dans le message (digitalmars.D:164837), a écrit :
> newsgroup. There were two problems for adoption: it makes writing
> functions difficult (because you have to add all that scoping thing to
> your mental model) and implementing new type modifiers is a major
> undertaking that di
I've never used new excellent range formatting syntax by Kenji Hara
until now. And I've met with difficulties, because "%(%(%c%), %)" is the
most common format for string array for me and it neither obvious nor
elegant. It occurs that "%c" disables character escaping. What the hell?
Why? Not ob
On Monday, 23 April 2012 at 12:11:19 UTC, Benjamin Thaut wrote:
If what you are saying is true, the deadlock must happen
somewhere else. This was kind of a assumption because the
deadlock happend after I added all the malloc / free calls.
Because all the threads are stopped when this happens
On Monday, 23 April 2012 at 03:17:49 UTC, Xinok wrote:
I know this has probably been asked for a hundred times before,
but I don't understand why D doesn't support this. Template
alias parameters can accept nearly anything as an argument that
standard aliases don't. I think standard aliases sho
Am 23.04.2012 13:57, schrieb Steven Schveighoffer:
On Mon, 23 Apr 2012 02:41:21 -0400, Benjamin Thaut
wrote:
I wrote a small "bad example" program for a presentation. It calls
malloc/free very frequently and I wanted to profile the impact of this
compared to a pool allocator solution. Unfortun
On Mon, 23 Apr 2012 02:41:21 -0400, Benjamin Thaut
wrote:
I wrote a small "bad example" program for a presentation. It calls
malloc/free very frequently and I wanted to profile the impact of this
compared to a pool allocator solution. Unfortunately I had to notice
that the program only r
On Sat, 21 Apr 2012 15:46:29 -0400, Mehrdad wrote:
alias int delegate(out ItemGetter next) ItemGetter;
We currently can't do the above^ in D, but what do people think about
allowing it?
i.e. More specifically, I think an alias expression should be able to
refer to the identifier (unless it
Am 23.04.2012 08:52, schrieb David:
Am 23.04.2012 08:41, schrieb Benjamin Thaut:
I wrote a small "bad example" program for a presentation. It calls
malloc/free very frequently and I wanted to profile the impact of this
compared to a pool allocator solution. Unfortunately I had to notice
that the
On Monday, 23 April 2012 at 08:08:52 UTC, Timon Gehr wrote:
On 04/23/2012 01:56 AM, deadalnix wrote:
Le 21/04/2012 18:54, bearophile a écrit :
Jonathan M Davis:
There have been discussions about the comma operator before.
I don't
expect that it's going anywhere,
Maybe there are intermediat
On 04/23/2012 01:56 AM, deadalnix wrote:
Le 21/04/2012 18:54, bearophile a écrit :
Jonathan M Davis:
There have been discussions about the comma operator before. I don't
expect that it's going anywhere,
Maybe there are intermediate solutions between keeping wild commas in D
and disallowing t
45 matches
Mail list logo