On Thursday, 10 May 2012 at 00:16:52 UTC, Mehrdad wrote:
Is this possible/should it compile?
If not, should I make an enhancement request for it? It's been
something that would've been useful in a ton of situations for
me...
void process(R)(R items, size_t maxCount = items.length)
{
}
On Saturday, 5 May 2012 at 23:41:52 UTC, Mehrdad wrote:
That's *such* a lame question...
Even if I _couldn't_ tell you a reason, that'd still be a lame
question, because the *entire point* of reflection is to access
type information information about the program... if for nothing
other than
I understand you're frustrated, but you don't need to be so
hostile. I agree with most of what you've said on this thread.
And just because I made a short comment doesn't mean I don't know
about std.stdint, sizediff_t, etc. My point was to say that
size_t is supposed to be the size of the
On Sunday, 6 May 2012 at 03:28:32 UTC, Mehrdad wrote:
Right, but what I was saying was that that *isn't* what it's
meant to be! It's just a *size* type, not a *word* of any
kind... (think about systems with interleaving pointers, for
example, x86 with segmentation -- the notion of a word
On Tuesday, 1 May 2012 at 21:46:42 UTC, Sönke Ludwig wrote:
I made a post with Steve Teale's MySQL driver as an example:
http://vibed.org/blog/posts/writing-native-db-drivers
There were some hidden gotchas, but I hope the current port
doesn't break anything from the original code.
The table
On Friday, 27 April 2012 at 13:02:56 UTC, 拖狗散步 wrote:
On Friday, 27 April 2012 at 01:21:56 UTC, Trass3r wrote:
export c callback fun:
alias void function(int id) ConnectedCallBack;
alias void function(int id, void* data, int len) ReadCallBack;
add extern(C) to be safe
Thank, Trass3r!
What about a templated module?
module test(bool option1, T);
Imported like this:
import test!(true, Foo);
It could act like the entire module was wrapped in a template,
and the import would become:
import test;
mixin test.test_template!(true, Foo);
On Friday, 27 April 2012 at 20:26:38 UTC, Dmitry Olshansky wrote:
I would rather see this as import test with specified version
identifiers.
import test!(some_version);
//imports module but treats it contents as if with version =
some_version; added at the top of it
This is inconsistent
On Friday, 27 April 2012 at 01:35:26 UTC, H. S. Teoh wrote:
When I get the time? Hah... I really need to get my lazy bum
back to
working on the new AA implementation first. I think that would
contribute greater value than optimizing Unicode algorithms.
:-) I was
hoping *somebody* would be
On Thursday, 12 April 2012 at 06:46:53 UTC, Jacob Carlborg wrote:
I'm pretty sure that the JSON output can _never_ be enough for
what we want to do.
I agree with that, nothing will quite be the same as a full
compiler-as-a-library (CAAL?). But in the meantime, there is a
working compiler
On Wednesday, 11 April 2012 at 13:55:45 UTC, Russel Winder wrote:
I am having a dumb n00b moment, but I need to solve this 10
mins ago ;-)
immutable files = ( selector == 0 ) ? [ . ] : filter ! ( (
string x ) { return x.isFile ; } ) ( sliceOfStrings ) ;
gives me the error:
Error:
On Tuesday, 10 April 2012 at 02:24:31 UTC, Andrei Alexandrescu
wrote:
Would the JSON compiler output help?
I made a pull request a while ago that gives a lot more JSON
output (https://github.com/D-Programming-Language/dmd/pull/813).
I'm willing to try to improve it to better meet the needs
On Friday, 6 April 2012 at 06:40:02 UTC, Gour wrote:
Otherwise, I'm considering to use Geany and/or buy SublimeText2.
I use Sublime Text 2, and it is a great editor. You can try it
for free, there's just a nag dialog that opens occasionally.
On Wednesday, 28 March 2012 at 07:00:58 UTC, Brad Anderson wrote:
[...]
I've been trying to generate parsable ddoc output for use in an
autocomplete for the search box (symbol names + short
documentation
excerpts for context). I had some luck but couldn't strip it
down to the
bare minimum
On Tuesday, 27 March 2012 at 15:14:07 UTC, Andrei Alexandrescu
wrote:
On 3/27/12 6:54 AM, Tyro[17] wrote:
On Tuesday, 27 March 2012 at 00:05:51 UTC, Andrei Alexandrescu
wrote:
On 3/26/12 2:52 PM, Tyro[17] wrote:
Couldn't the state of stdin be checked upon entrance into
readf
and reopened if
On Tuesday, 27 March 2012 at 19:05:19 UTC, H. S. Teoh wrote:
On Tue, Mar 27, 2012 at 08:56:56PM +0200, Matt Peterson wrote:
On Tuesday, 27 March 2012 at 15:14:07 UTC, Andrei Alexandrescu
wrote:
[...]
You're in a sparse minority at best. Every Unix application
out there
uses Ctrl-D for end
On Friday, 23 March 2012 at 04:07:53 UTC, bearophile wrote:
I suggest to compile all your D2 code with -wi (or -w) and
-property.
Already using -w, and I thought I was using -property. I am now,
thanks.
And one bug of UFCS will be probably fixed by Hara
On Tuesday, 20 March 2012 at 19:02:16 UTC, Andrei Alexandrescu
wrote:
I plan to give a talk at Lang.NEXT
(http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012) with
the subject above. There are a few features of D that turned
out to be successful, in spite of them being seemingly
18 matches
Mail list logo