On 07/20/2010 02:23 PM, awishformore wrote:
When thinking about it, it makes sense to have string literals null
terminated in order to have C functions work with them. However, I
wonder about some stuff, for instance:
string s = string;
// is s == string\0 now?
No, but the byte after the
On 05/24/2010 07:04 PM, Adam Ruppe wrote:
On 5/24/10, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote:
FWIW I swear by it.
Me too. I was opposed to it in the beginning as being unnecessary, but
it is really nice now that I use it.
auto a = to!int(whatever);
Just flows really nicely.
On 05/24/2010 06:27 PM, Andrei Alexandrescu wrote:
struct List { int v; List * next; }
While I do agree with that design for a list, that is no reference type.
I thought we wanted reference types.
On 05/22/2010 12:20 PM, bearophile wrote:
BCS:
Maybe the style rule should be: dynamic arrays and AA's should be passed
as const or ref.
Something like that must be enforced by the compiler, or the design of
arrays/AAs must be changed.
Bye,
bearophile
It's not a very good rule anyway:
On 05/22/2010 01:28 PM, bearophile wrote:
Pelle:
Yes, it works, but it doesn't gain anything from it, which is what I
said. :)
Then what you have said was useless.
Bye,
bearophile
How so? Passing by reference is slower, and sometimes completely
meaningless. Therefore, having a rule
On 05/20/2010 03:22 PM, Steven Schveighoffer wrote:
One thing I just thought of -- in dcollections, similar types can be compared
to one another. For example, you can check to see if a HashSet is equal to a
TreeSet. But that would not be possible without interfaces.
-Steve
I'm sorry, but
On 05/06/2010 06:48 PM, Andrei Alexandrescu wrote:
I wonder if this is of enough general utility to warrant inclusion
within the D distribution, along with rdmd. Thoughts?
Yes please, rdmd --tags would be great.
On 02/20/2010 06:15 PM, Adam Ruppe wrote:
One of the (few) things I like about PHP is the ease with which you
can get to the docs. You can just put the name into your browser, and
it comes right up:
php.net/strpos
I set up something similar for D today: dpldocs.info. (I tried to find
a better
Sweet!