Re: SQLite 3.6.23.1 wrapper + connector

2010-07-22 Thread Pelle
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

Re: Bug fix week

2010-05-24 Thread Pelle
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.

Re: dcollections 1.0 and 2.0a beta released

2010-05-24 Thread Pelle
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.

Re: dcollections 1.0 and 2.0a beta released

2010-05-22 Thread Pelle
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:

Re: dcollections 1.0 and 2.0a beta released

2010-05-22 Thread Pelle
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

Re: dcollections 1.0 and 2.0a beta released

2010-05-20 Thread Pelle
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

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Pelle
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.

Re: dpldocs.info - easy redirect to phobos docs

2010-02-21 Thread Pelle Månsson
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

Re: New vim d.vim syntax highlighting script

2010-01-12 Thread Pelle Månsson
Sweet!