Re: Database developer's gentle view on D.

2012-01-01 Thread Jimmy Cao
2012/1/1 Gour g...@atmarama.net On Sat, 31 Dec 2011 20:28:43 -0800 bls bizp...@orange.fr wrote: A Database independent, ORM based library module is not even matter of discussion. That's a pity. That would be nice, indeed. Well for us Windoze is the only interesting Desktop platform.

Re: Happy New Year in 2012....

2012-01-01 Thread Caligo
On Sat, Dec 31, 2011 at 11:34 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: to the entire D community! Andrei I used GitStats to gather some statistics on DMD. My favorites: Age - 932 days, 598 active days (64.16%) Total Files - 1_016 Total Lines of Code - 328_727 (525_735

How mutable is immutable?

2012-01-01 Thread Denis Shelomovskij
So, I'm a function `f`, I have an `immutable(type)[]` argument and I want to store it for my friend `g` in an TLS variable `v`: --- string v; debug string sure; void f(string s) { v = s; debug sure = s.idup; } void g() { assert(v == sure); } --- I also store a copy of `s` into `sure` for my

Re: Database developer's gentle view on D.

2012-01-01 Thread Gour
On Sun, 1 Jan 2012 02:22:59 -0600 Jimmy Cao jcao...@gmail.com wrote: GUI library for Windows. Pretty easy to use. Thank you, but not interesting for us looking for multi-platform library. Sincerely, Gour -- Those persons who execute their duties according to My injunctions and who follow

Re: string is rarely useful as a function argument

2012-01-01 Thread a
Meh, I'd still prefer it be an array of UTF-8 code /points/ represented by an array of bytes (which are the UTF-8 code units). By saying you want an array of code points you already define representation. And if you want that there already is dchar[]. You probably meant a range of code points

Re: Happy New Year in 2012....

2012-01-01 Thread Joel Christensen
Happy New Year - from New Zealand! :-D

Re: Happy New Year in 2012....

2012-01-01 Thread kenji hara
A happy new year! from Japan Kenji Hara 2012/1/1 Andrei Alexandrescu seewebsiteforem...@erdani.org: to the entire D community! Andrei

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Tobias Pankrath
Jonathan M Davis wrote: I think that on some level, the unit test framework in the language has failed if we have to add library solutions on top of it to get such basic functionality. That's what we are saying: The unit test framework fails for us and a library solution is perfectly

Re: Happy New Year in 2012....

2012-01-01 Thread Denis Shelomovskij
01.01.2012 8:34, Andrei Alexandrescu пишет: to the entire D community! Andrei Happy new year from Russia! It's OT. This post should be in D.announce NG titled: A year have rev. 2012 now. Everybody is switched to this revision automatically. With the following text: Somebody is telling it's

Re: A nice way to step into 2012

2012-01-01 Thread Timon Gehr
On 01/01/2012 08:17 AM, Don wrote: On 31.12.2011 16:26, Timon Gehr wrote: On 12/31/2011 12:13 PM, Don wrote: On 31.12.2011 02:27, so wrote: On Sat, 31 Dec 2011 02:40:24 +0200, Don nos...@nospam.com wrote: I think: there are cases when named parameters are beneficial. There are cases where

Re: How mutable is immutable?

2012-01-01 Thread Timon Gehr
On 01/01/2012 10:40 AM, Denis Shelomovskij wrote: So, I'm a function `f`, I have an `immutable(type)[]` argument and I want to store it for my friend `g` in an TLS variable `v`: --- string v; debug string sure; void f(string s) { v = s; debug sure = s.idup; } void g() { assert(v == sure); } ---

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D handles it, you might write this: char[] str; ... load str ... for ( int i = 0; i str.length; i++ ) { font.render(str[i]); // Ewww. ... } That actually looks like a bug that might happen in

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/01/2012 08:10 AM, Don wrote: On 31.12.2011 17:13, Timon Gehr wrote: On 12/31/2011 01:15 PM, Don wrote: On 31.12.2011 01:56, Timon Gehr wrote: On 12/31/2011 01:12 AM, Andrei Alexandrescu wrote: On 12/30/11 6:07 PM, Timon Gehr wrote: alias std.string.representation raw; I meant your

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2011-12-31 21:56, Jonathan M Davis wrote: On Saturday, December 31, 2011 16:06:49 Jacob Carlborg wrote: BTW, what would be so wrong if the unit tests for the standard library displayed a nice report when finished? My primary issue here is that I don't think that we should be adding stuff

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2011-12-31 21:57, Jonathan M Davis wrote: On Saturday, December 31, 2011 15:48:16 Jacob Carlborg wrote: Yes but what happens when there are many failed tests, i.e. may AssertErrors that have been thrown? It will just print all after each other and you have to count them yourself if you want

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2011-12-31 22:01, Jonathan M Davis wrote: On Saturday, December 31, 2011 16:04:12 Jacob Carlborg wrote: It would be possible to implement named unit tests only in library code. It would not have as nice syntax as if it was implemented in the language but still possible. In Ruby on Rails I

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2012-01-01 01:57, Andrew Wiley wrote: On Sat, Dec 31, 2011 at 2:56 PM, Jonathan M Davisjmdavisp...@gmx.com wrote: On Saturday, December 31, 2011 16:06:49 Jacob Carlborg wrote: On 2011-12-31 11:37, Jonathan M Davis wrote: On Saturday, December 31, 2011 11:05:58 Tobias Pankrath wrote: I

Re: Array allocation on struct initialization

2012-01-01 Thread Peter Alexander
On 29/12/11 5:13 PM, Benjamin Thaut wrote: I'm currently trying to make a nongc safe version of the d-runtime and stumbeled on my favorite WTF moment so far: The following programm: struct MemoryBlockInfo { size_t size; long[10] backtrace; int backtraceSize; this(size_t size) { this.size =

Re: Happy New Year in 2012....

2012-01-01 Thread Steve Teale
On Sat, 31 Dec 2011 23:34:29 -0600, Andrei Alexandrescu wrote: to the entire D community! Andrei And from Tanzania - D community come and visit ;=)

Re: Database developer's gentle view on D.

2012-01-01 Thread Steve Teale
On Sat, 31 Dec 2011 20:28:43 -0800, bls wrote: Not yet available. In case that Steve Teale (and he did a dammed good Job, as well as Piotr) will add std.database this will not change the situation significantly. 'Cause std.database will contain just rudimentary DB support.. A Database

Re: string is rarely useful as a function argument

2012-01-01 Thread Chad J
On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D handles it, you might write this: char[] str; ... load str ... for ( int i = 0; i str.length; i++ ) { font.render(str[i]); // Ewww. ... }

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D handles it, you might write this: char[] str; ... load str ... for ( int i = 0; i str.length; i++ ) {

Re: A nice way to step into 2012

2012-01-01 Thread Don
On 31.12.2011 16:58, Timon Gehr wrote: On 12/31/2011 12:51 PM, Don wrote: On 2011-12-27 23:27, Timon Gehr wrote: In case the function is used for code generation, it can get rid of one level of indentation. string generate(string x) = mixin(X!q{ @(x) = 2; }); That just makes it look even

Re: Removing the Lock for Small GC Allocations: Clarification of GC Design?

2012-01-01 Thread Alex Rønne Petersen
On 31-12-2011 23:28, dsimcha wrote: I have a plan to avoid the GC lock for most small (1 page) GC allocations. I hope to have a pull request within a week or two, in time for the next release. There's one detail I need clarified by Sean, Walter or someone who designed the D GC. Currently small

Re: Happy New Year in 2012....

2012-01-01 Thread Don
On 01.01.2012 09:40, Caligo wrote: On Sat, Dec 31, 2011 at 11:34 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org mailto:seewebsiteforem...@erdani.org wrote: to the entire D community! Andrei I used GitStats to gather some statistics on DMD. My favorites: Age - 932 days, 598

Re: compiling dmd

2012-01-01 Thread Don
On 31.12.2011 15:55, Marco Leise wrote: Am 29.12.2011, 09:16 Uhr, schrieb Don nos...@nospam.com: On 28.12.2011 13:14, Timon Gehr wrote: On 12/28/2011 10:53 AM, Peter Alexander wrote: On 27/12/11 8:40 PM, Andrei Alexandrescu wrote: On 12/27/11 2:38 PM, Walter Bright wrote: On 12/27/2011

Re: A nice way to step into 2012

2012-01-01 Thread Timon Gehr
On 01/01/2012 04:39 PM, Don wrote: On 31.12.2011 16:58, Timon Gehr wrote: On 12/31/2011 12:51 PM, Don wrote: On 2011-12-27 23:27, Timon Gehr wrote: In case the function is used for code generation, it can get rid of one level of indentation. string generate(string x) = mixin(X!q{ @(x) = 2;

Re: Database developer's gentle view on D.

2012-01-01 Thread Adam D. Ruppe
On Sunday, 1 January 2012 at 04:28:45 UTC, bls wrote: WEB Development is for sure doable in D, reusable Frameworks are nevertheless AFAIK not available. What kind of features did you have in mind for this?

Re: string is rarely useful as a function argument

2012-01-01 Thread Chad J
On 01/01/2012 10:39 AM, Timon Gehr wrote: On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D handles it, you might write this: char[] str; ... load str ... for ( int i =

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/01/2012 08:01 PM, Chad J wrote: On 01/01/2012 10:39 AM, Timon Gehr wrote: On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D handles it, you might write this: char[]

Re: Removing the Lock for Small GC Allocations: Clarification of GC Design?

2012-01-01 Thread Martin Nowak
On Sat, 31 Dec 2011 23:28:09 +0100, dsimcha dsim...@yahoo.com wrote: I have a plan to avoid the GC lock for most small (1 page) GC allocations. I hope to have a pull request within a week or two, in time for the next release. There's one detail I need clarified by Sean, Walter or someone

A small style tip

2012-01-01 Thread Mail Mantis
Just a small tip for those people, who use following code style: if( cond ) { body } else { body } I've found it very convenient to attach unittest block to my function declatarions in a same way: private int find_pos_divisor( int first, int second ) { int temp; while( second ) {

Re: string is rarely useful as a function argument

2012-01-01 Thread deadalnix
Le 31/12/2011 19:13, Timon Gehr a écrit : On 12/31/2011 06:32 PM, Chad J wrote: On 12/30/2011 05:27 PM, Timon Gehr wrote: On 12/30/2011 10:36 PM, deadalnix wrote: The #1 quality of a programmer is to act like he/she is a morron. Because sometime we all are morrons. The #1 quality of a

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/01/2012 11:36 PM, deadalnix wrote: Le 31/12/2011 19:13, Timon Gehr a écrit : On 12/31/2011 06:32 PM, Chad J wrote: On 12/30/2011 05:27 PM, Timon Gehr wrote: On 12/30/2011 10:36 PM, deadalnix wrote: The #1 quality of a programmer is to act like he/she is a morron. Because sometime we

Re: A small style tip

2012-01-01 Thread David
Am 01.01.2012 23:16, schrieb Mail Mantis: Just a small tip for those people, who use following code style: if( cond ) { body } else { body } I've found it very convenient to attach unittest block to my function declatarions in a same way: private int find_pos_divisor( int first, int

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jonathan M Davis
On Sunday, January 01, 2012 15:35:00 Jacob Carlborg wrote: Ok, if you would rather have all this in the language I would say no do that. But I know other people in the community that usually prefer to do a library solution if possible. If all we're talking about is named unit tests and running

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jonathan M Davis
On Sunday, January 01, 2012 15:32:34 Jacob Carlborg wrote: On 2011-12-31 21:57, Jonathan M Davis wrote: On Saturday, December 31, 2011 15:48:16 Jacob Carlborg wrote: Yes but what happens when there are many failed tests, i.e. may AssertErrors that have been thrown? It will just print all

Re: string is rarely useful as a function argument

2012-01-01 Thread Chad J
On 01/01/2012 02:25 PM, Timon Gehr wrote: On 01/01/2012 08:01 PM, Chad J wrote: On 01/01/2012 10:39 AM, Timon Gehr wrote: On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you haven't been educated about unicode or how D

Re: A small style tip

2012-01-01 Thread bearophile
Mail Mantis: private int find_pos_divisor( int first, int second ) { int temp; while( second ) { temp = second; second = first % second; first = temp; } return abs( first ); } unittest { assert( find_pos_divisor ( 10, 20 ) == 10 );

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jonathan M Davis
On Sunday, January 01, 2012 15:31:18 Jacob Carlborg wrote: What's wrong with being able to run the unit tests from your editor, have the unit test framework output HTML (or similar), displayed in your editor and then you can click on links in the stack trace to get to the source code. If you

Re: A small style tip

2012-01-01 Thread Jonathan M Davis
On Monday, January 02, 2012 00:16:18 Mail Mantis wrote: Just a small tip for those people, who use following code style: if( cond ) { body } else { body } I've found it very convenient to attach unittest block to my function declatarions in a same way: private int

Re: string is rarely useful as a function argument

2012-01-01 Thread Timon Gehr
On 01/02/2012 12:16 AM, Chad J wrote: On 01/01/2012 02:25 PM, Timon Gehr wrote: On 01/01/2012 08:01 PM, Chad J wrote: On 01/01/2012 10:39 AM, Timon Gehr wrote: On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On 01/01/2012 05:53 AM, Chad J wrote: If you

Re: A small style tip

2012-01-01 Thread Mail Mantis
2012/1/2 Jonathan M Davis jmdavisp...@gmx.com And I find that style to be seriously harming readability (braces should always be on their own line IMHO), but I guess that if you like it, it makes sense. - Jonathan M Davis I understand your point, but don't share it - since tabulation

Re: dmd and C++11

2012-01-01 Thread Sean Cavanaugh
On 12/29/2011 10:16 AM, Trass3r wrote: On Thursday, 29 December 2011 at 16:00:47 UTC, Vladimir Panteleev wrote: On Thursday, 29 December 2011 at 15:58:55 UTC, Trass3r wrote: What's the stance on using C++11 features in the dmd source code in the future? Well, how many C++11 features does DMC

Re: dmd and C++11

2012-01-01 Thread Mail Mantis
2012/1/2 Sean Cavanaugh worksonmymach...@gmail.com On 12/29/2011 10:16 AM, Trass3r wrote: On Thursday, 29 December 2011 at 16:00:47 UTC, Vladimir Panteleev wrote: On Thursday, 29 December 2011 at 15:58:55 UTC, Trass3r wrote: What's the stance on using C++11 features in the dmd source code

Re: dmd and C++11

2012-01-01 Thread Walter Bright
On 1/1/2012 4:30 PM, Mail Mantis wrote: As for D - it already natively supports many C++11 features(or vise-versa), but I wonder if the user-defined literals will ever make into it. With CTFE D has far better than user defined literals.

Re: dmd and C++11

2012-01-01 Thread Mail Mantis
2012/1/2 Walter Bright newshou...@digitalmars.com On 1/1/2012 4:30 PM, Mail Mantis wrote: As for D - it already natively supports many C++11 features(or vise-versa), but I wonder if the user-defined literals will ever make into it. With CTFE D has far better than user defined literals.

Re: A small style tip

2012-01-01 Thread Jonathan M Davis
On Monday, January 02, 2012 01:40:30 Mail Mantis wrote: 2012/1/2 Jonathan M Davis jmdavisp...@gmx.com And I find that style to be seriously harming readability (braces should always be on their own line IMHO), but I guess that if you like it, it makes sense. - Jonathan M Davis I

Re: string is rarely useful as a function argument

2012-01-01 Thread Chad J
On 01/01/2012 06:36 PM, Timon Gehr wrote: On 01/02/2012 12:16 AM, Chad J wrote: On 01/01/2012 02:25 PM, Timon Gehr wrote: On 01/01/2012 08:01 PM, Chad J wrote: On 01/01/2012 10:39 AM, Timon Gehr wrote: On 01/01/2012 04:13 PM, Chad J wrote: On 01/01/2012 07:59 AM, Timon Gehr wrote: On

Re: dmd and C++11

2012-01-01 Thread Adam D. Ruppe
On Monday, 2 January 2012 at 01:14:43 UTC, Mail Mantis wrote: If I undestood you correctly... Potentially, yes, But, from syntactical point of view, is there any [...] http://drdobbs.com/blogs/tools/229401068 In std.conv, the octal template is one example: int a = octal!755; Another thing

Can anyone reproduce this?

2012-01-01 Thread Timon Gehr
On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);} dmd -run test -- killed by signal 11 Is this a regression or a problem with my setup (DMD 2.057 on Ubuntu 11.10 64

Re: Can anyone reproduce this?

2012-01-01 Thread Caligo
On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr timon.g...@gmx.ch wrote: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);} dmd -run test -- killed by signal 11 Is

Re: Can anyone reproduce this?

2012-01-01 Thread Joshua Reusch
Am 02.01.2012 02:51, schrieb Timon Gehr: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);} dmd -run test -- killed by signal 11 Is this a regression or a problem with

Re: Can anyone reproduce this?

2012-01-01 Thread Joshua Reusch
Am 02.01.2012 03:07, schrieb Joshua Reusch: Am 02.01.2012 02:51, schrieb Timon Gehr: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);} dmd -run test -- killed by signal

Re: Can anyone reproduce this?

2012-01-01 Thread Caligo
On Sun, Jan 1, 2012 at 8:07 PM, Joshua Reusch yos...@arkandos.de wrote: Am 02.01.2012 02:51, schrieb Timon Gehr: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);}

Re: Can anyone reproduce this?

2012-01-01 Thread Timon Gehr
On 01/02/2012 03:02 AM, Caligo wrote: On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr timon.g...@gmx.ch mailto:timon.g...@gmx.ch wrote: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int

Re: Can anyone reproduce this?

2012-01-01 Thread Matej Nanut
On 2 January 2012 02:51, Timon Gehr timon.g...@gmx.ch wrote: Is this a regression or a problem with my setup (DMD 2.057 on Ubuntu 11.10 64 bit)? Can anyone reproduce this? I get an assert error. Using DMD 2.057 and Arch Linux, but on 32 bit. So I assume that might be it?

Re: Can anyone reproduce this?

2012-01-01 Thread Martin Nowak
On Mon, 02 Jan 2012 03:23:00 +0100, Timon Gehr timon.g...@gmx.ch wrote: On 01/02/2012 03:02 AM, Caligo wrote: On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr timon.g...@gmx.ch mailto:timon.g...@gmx.ch wrote: On my machine, the following program causes an access violation in druntime

Re: A small style tip

2012-01-01 Thread Derek
On Mon, 02 Jan 2012 12:20:36 +1100, Jonathan M Davis jmdavisp...@gmx.com wrote: The placement of braces is very much a matter of personal preference. I suspect that any given piece of source code is read far more often by people that didn't write it. So personal code writing preferences

Re: Can anyone reproduce this?

2012-01-01 Thread Derek
On Mon, 02 Jan 2012 12:51:20 +1100, Timon Gehr timon.g...@gmx.ch wrote: On my machine, the following program causes an access violation in druntime instead of throwing an AssertError. module test; void foo(int x){assert(x);} void main(){foo(0);} dmd -run test -- killed by signal 11 Is

Re: Can anyone reproduce this?

2012-01-01 Thread Derek
On Mon, 02 Jan 2012 14:36:37 +1100, Derek ddparn...@bigpond.com wrote: Can anyone reproduce this? May I did have one too many beers today ... -- Derek Parnell Melbourne, Australia

Re: Can anyone reproduce this?

2012-01-01 Thread Timon Gehr
On 01/02/2012 04:36 AM, Martin Nowak wrote: On Mon, 02 Jan 2012 03:23:00 +0100, Timon Gehr timon.g...@gmx.ch wrote: On 01/02/2012 03:02 AM, Caligo wrote: On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr timon.g...@gmx.ch mailto:timon.g...@gmx.ch wrote: On my machine, the following program causes

Re: Bugs marked with [tdpl]

2012-01-01 Thread kenji hara
Progress status at the end of 2011. Issue 3235 - [tdpl] Function literals must be deduced as function or delegateIssue 5605 - [tdpl] foreach with ranges doesn't support opSlice()Issue 6714 - [tdpl] Type inference for parameters of function and delegate literalsIssue 7133 - [tdpl] There should be

Re: Bugs marked with [tdpl]

2012-01-01 Thread kenji hara
Progress status at the end of 2011. Issue 3235 - [tdpl] Function literals must be deduced as function or delegateIssue 5605 - [tdpl] foreach with ranges doesn't support opSlice() Issue 6714 - [tdpl] Type inference for parameters of function and delegate literals Issue 7133 - [tdpl] There should

Better distinguishing reference and value in the syntax?

2012-01-01 Thread Gou Lingfeng
D's definitions of is and == have so much redundency. That might indicate some flaw. If references and values (for classes and arrays) could be clearly distinguished in the syntax, the is operator is not necessary at all. A related thing is element-wise operation. Consider string[] a; string[] b;

Re: A small style tip

2012-01-01 Thread F i L
On Sunday, 1 January 2012 at 22:18:05 UTC, Mail Mantis wrote: Just a small tip for those people, who use following code style: if( cond ) { body } else { body } I've found it very convenient to attach unittest block to my function declatarions in a same way: private int find_pos_divisor(

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2012-01-02 00:28, Jonathan M Davis wrote: On Sunday, January 01, 2012 15:31:18 Jacob Carlborg wrote: What's wrong with being able to run the unit tests from your editor, have the unit test framework output HTML (or similar), displayed in your editor and then you can click on links in the

Re: CURL Wrapper: Congratulations Next up: std.serialize

2012-01-01 Thread Jacob Carlborg
On 2012-01-02 00:14, Jonathan M Davis wrote: On Sunday, January 01, 2012 15:35:00 Jacob Carlborg wrote: Ok, if you would rather have all this in the language I would say no do that. But I know other people in the community that usually prefer to do a library solution if possible. If all we're

Re: Programming on OSX

2012-01-01 Thread Joel Christensen
On 01-Jan-12 3:27 AM, Jacob Carlborg wrote: On 2011-12-31 00:50, Joel Christensen wrote: I've got an Mac with OSX. But I have a few problems with using it with D. 1. I haven't got any media programming going. Could you please elaborate. Derelict is a library that contains bindings for

Re: Programming on OSX

2012-01-01 Thread Mike Parker
On 1/1/2012 7:38 PM, Joel Christensen wrote: On 01-Jan-12 3:27 AM, Jacob Carlborg wrote: On 2011-12-31 00:50, Joel Christensen wrote: I've got an Mac with OSX. But I have a few problems with using it with D. 1. I haven't got any media programming going. Could you please elaborate. Derelict

Re: Programming on OSX

2012-01-01 Thread Jakob Ovrum
On Sunday, 1 January 2012 at 11:54:46 UTC, Mike Parker wrote: Personally, I think wrappers are a waste of time, but some people prefer them to using a C API directly. I agree for wrappers that mindlessly provide a different syntax for the same functionality, but wrappers can take advantage of

Re: Cartesian product of ranges?

2012-01-01 Thread Peter Alexander
On 14/12/11 9:21 PM, Timon Gehr wrote: On 12/14/2011 09:14 PM, Justin Whear wrote: I've looked through std.algorithm and std.range, but haven't found anything to compute the Cartesian product of several ranges. I have the nagging feeling that this can be accomplished by combining several of the

Re: typedef deprecated - now what ?

2012-01-01 Thread Stewart Gordon
On 31/12/2011 13:34, Trass3r wrote: Basically it was deprecated because it's poorly defined and implemented. snip Would you care to elaborate? Moreover, if that's the only reason then why not improve it rather than getting rid of it? There are several types of typedefs that need to be

Re: Programming on OSX

2012-01-01 Thread Mike Parker
On 1/2/2012 6:10 AM, Joel Christensen wrote: Thanks very much Mike. I guess I've got a bit of a wrapper over a binding. I'll look more into Derelict for Mac OSX. If it's DerelictAllegro you're using, then you need to know this. Derelict loads libraries manually (via dlopen on Posix systems).

Re: Programming on OSX

2012-01-01 Thread Joel
On Sunday, 1 January 2012 at 11:54:46 UTC, Mike Parker wrote: On 1/1/2012 7:38 PM, Joel Christensen wrote: On 01-Jan-12 3:27 AM, Jacob Carlborg wrote: On 2011-12-31 00:50, Joel Christensen wrote: I've got an Mac with OSX. But I have a few problems with using it with D. 1. I haven't got any

Re: Programming on OSX

2012-01-01 Thread Joel
[snip] I seem to get SDL to work, but not OpenGL. I copied it's frame work from system some where to another frameworks place. I've got XCode installed. Hmm. I had a go at another test program I found and got it working. Graphics with D on OSX, so now that's Windows, Ubuntu, and now OSX.

[Issue 7187] Regression(head 12d62ca5): [CTFE] ICE on slicing

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7187 Denis verylonglogin@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 3448] __traits(compiles) returns true for a non-compilable template instantiation

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3448 Denis verylonglogin@gmail.com changed: What|Removed |Added CC|

[Issue 3448] __traits(compiles) not in a function returns true for a non-compilable template instantiation

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3448 Denis verylonglogin@gmail.com changed: What|Removed |Added Summary|__traits(compiles) returns |__traits(compiles)

[Issue 3616] __traits(compiles) returns true for uncompilable code due to static assert

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3616 Denis verylonglogin@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7193] New: Regression(2.058head): ICE: delete lambda expression crashes dmd

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7193 Summary: Regression(2.058head): ICE: delete lambda expression crashes dmd Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords:

[Issue 965] `is(uncompilable template)` is true and doesn't gap errors if not in a function

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=965 Denis verylonglogin@gmail.com changed: What|Removed |Added CC|

[Issue 7193] Regression(2.058head): ICE: delete lambda expression crashes dmd

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7193 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #1

[Issue 7194] New: [CTFE] Incorrect behaviour with pointers as local struct variable fields

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7194 Summary: [CTFE] Incorrect behaviour with pointers as local struct variable fields Product: D Version: D1 D2 Platform: Other OS/Version: Windows Status: NEW

[Issue 5103] Container Documentation missing syntax

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5103 Nick Treleaven ntrel-pub...@yahoo.co.uk changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7135] [tdpl] Multiple delegate-related issues (literal syntax, @system deduction)

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7135 --- Comment #8 from Kenji Hara k.hara...@gmail.com 2012-01-01 05:56:47 PST --- (In reply to comment #7) One more thing - the example in the book reads: obj.addMethod(sayHello, Variant(Dynamic, Variant[]...) {

[Issue 7190] Tuple length incorrect

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7190 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-01-01 06:37:02 PST --- This is a forward reference bug. Workaround in core/Model.d: class SqlitePersister(T) { +static assert(T.sizeof); // force running semantic of T +

[Issue 7190] Tuple length incorrect

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7190 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch

[Issue 2411] Reference Tuple Foreach

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2411 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #4

[Issue 2411] Reference Tuple Foreach

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2411 --- Comment #5 from Kenji Hara k.hara...@gmail.com 2012-01-01 08:31:04 PST --- My patch requires explicit 'ref'. void main() { S s; // foreach(element; s.tupleof) // doesn't work foreach(ref element; s.tupleof) // OK

[Issue 7169] [CTFE] Assertion failure with inner struct

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7169 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||ice-on-invalid-code

[Issue 5467] library-based typedef

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5467 Stewart Gordon s...@iname.com changed: What|Removed |Added CC||s...@iname.com ---

[Issue 314] [module] Static, renamed, and selective imports are always public

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=314 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7195] New: remove in std.algorithm documentation quick links goes to wrong remove

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7195 Summary: remove in std.algorithm documentation quick links goes to wrong remove Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW

[Issue 7195] remove in std.algorithm documentation quick links goes to wrong remove

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7195 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 7195] remove in std.algorithm documentation quick links goes to wrong remove

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7195 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6017] std.algorithm.remove has a wrong link

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6017 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC||e...@gnuk.net

[Issue 314] [module] Static, renamed, and selective imports are always public

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=314 --- Comment #36 from Leandro Lucarella llu...@gmail.com 2012-01-01 16:04:19 PST --- And the most voted bug from all times (41 votes, the next most voted have 28 votes) finally get fixed. Thanks for the persistence, ckamm!!! :) -- Configure

[Issue 6170] Undefined reference for methods without body implemented in derived class

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6170 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added Attachment #1001|application/octet-stream|text/plain

[Issue 6058] Contract inheritance causes compiler error

2012-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6058 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added Attachment #990|application/octet-stream|text/plain

  1   2   >