Re: dmd 1.050 and 2.035 release

2009-10-16 Thread Unkown to Xnntp
zsxxsz zhengshu...@hexun.com wrote: == Quote from digited (digi...@yandex.ru)'s article Walter Bright Wrote: The main purpose of this is to correct a couple of regressions that were blocking QtD and Tango. http://www.digitalmars.com/d/1.0/changelog.html

Re: dmd 1.050 and 2.035 release

2009-10-16 Thread rmcguire
Walter Bright newshou...@digitalmars.com wrote: digited wrote: So you don't mind that Tango is still uncompilable with 1.050 because of hurrying, I didn't know that. The bugzilla number which was posted as the reason it wouldn't compile was fixed. Hi Walter, could you not just put

Re: Revamped concurrency API

2009-10-16 Thread Chris Nicholson-Sauls
Bill Baxter wrote: case 1: case 3: break; should still be allowed. --bb Or replace with: case 1, 3: break; -- Chris Nicholson-Sauls

Re: Eliminate assert and lazy from D?

2009-10-16 Thread Chris Nicholson-Sauls
Andrei Alexandrescu wrote: Adam D. Ruppe wrote: If not, it seems kinda weird that assert() is just a lib function, but if you put static before it, it becomes a completely different thing. That kinda takes the wind out of the sails of the remove assert ship. It randomly occurred to me

Re: The D Manifesto

2009-10-16 Thread Chris Nicholson-Sauls
Frank Fuente wrote: Justin Johansson Wrote: Frank Fuente Wrote: Justin Johansson Wrote: Where is it? [Ed, remembering of course that .. The most important thing is remembering that black text on a white screen carries absolutely no emotional information whatsoever, in either direction,

Re: OT Renting a dedicated Server in the US

2009-10-16 Thread Chris Nicholson-Sauls
BLS wrote: Sorry OT, I would like to rent a dedicated (root) server in the United States Linux Ubuntu 8, min 4GB. so nothing special... Do you have any recommendations ? TIA, Björn http://www.linode.com/ -- Chris Nicholson-Sauls

Re: dmd support for IDEs

2009-10-16 Thread Chris Nicholson-Sauls
Andrei Alexandrescu wrote: One cool thing is combining sshfs with autofs. A cool thing I'd seriously never thought of. Time to autofs half my /mnt... -- Chris Nicholson-Sauls

Re: T[new] misgivings

2009-10-16 Thread Lutger
Just to understand it: int[new] a; int[new] b; a = [1,2,3]; b = a; In your book, the last statement would copy contents of a into b and b.ptr != a.ptr while according to walter, b would rebind to a?

Re: Delegate perfomance (outrage was redherring)

2009-10-16 Thread Justin Johansson
bearophile Wrote: Justin Johansson: this turns out to be a clear demonstration of the performance-enhancing power of D delegates over an otherwise ingrained C++ thinking approach. I have changed your benchmark a little, you may want to look at its timings too (I have taken

Re: T[new] misgivings

2009-10-16 Thread Don
Andrei Alexandrescu wrote: I talked to Walter about T[new] today and it seems we are having a disagreement. The problem is that I believe T[new] is a container, whereas Walter believes T[new] is nothing but a slice with a couple of extra operations. Paradoxically this seems to be conducive

Re: Delegate perfomance (outrage was redherring)

2009-10-16 Thread bearophile
Justin Johansson: Also added -O switch this time though have no idea what level of optimization that does. (btw. In this test code, the -release switch doesn't do anything does it as that's just for conditional compilation?) In DMD: -O means full optimizations minus the inlining (and

Re: The D Manifesto

2009-10-16 Thread Nick Sabalausky
Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message news:hb94d1$ho...@digitalmars.com... I still use that mode in my terminals, though... somehow black-on-white never suited me in that one case. Even less so than green-on-black (always felt so hollywood, shiver). I think I'm

Re: MathExp: KISS or All-Out?

2009-10-16 Thread gzp
language_fan írta: Thu, 15 Oct 2009 02:04:09 -0400, Chad J thusly wrote: I'm reminded of how annoying it is when there are different libraries for a language that all define their mathematical types differently and in incompatible ways (all of the Vec2D, Vec3D, etc ever). Also aggravating is

Re: T[new] misgivings

2009-10-16 Thread Don
Max Samukha wrote: On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I talked to Walter about T[new] today and it seems we are having a disagreement. I'd prefer Walter's way with a provision that array literals are immutable and allocated

Re: T[new] misgivings

2009-10-16 Thread Walter Bright
Don wrote: There are two sensible options: I see the question as, is T[new] a value type or a reference type? I see it as a reference type, and so assignment should act like a reference assignment, not a value assignment.

Re: T[new] misgivings

2009-10-16 Thread Walter Bright
Don wrote: Max Samukha wrote: // arrays are true reference types int[new] a = [1, 2, 3]; b = a; a.length = 22; assert (a.length == b.length); This makes perfect sense to me. The rule would be: If 'x' is T[new], then: x = y; _always_ copies y into a {length, capacity-specified block}, unless

Re: Communicating between in and out contracts

2009-10-16 Thread Walter Bright
Rainer Deyke wrote: Andrei Alexandrescu wrote: Eiffel offers the old keyword that refers to the old object in a postcondition. But it seems quite wasteful to clone the object just to have a contract look at a little portion of the old object. You don't need to clone the whole object. You

dmd support for IDEs and the D tool chain

2009-10-16 Thread Jacob Carlborg
Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some json for an IDE to use, the whole tool chain needs to be revised. Compiler: * Written in D * Supports all major

Re: Communicating between in and out contracts

2009-10-16 Thread bearophile
Walter Bright: Rainer Deyke: You don't need to clone the whole object. You just need to cache the properties that are used with 'old'. That's a good idea. Once in a time I want to improve Walter's mood. This is a list of the top 25 requests for improvements to the Java language (some

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread digited
Jacob Carlborg Wrote: IDE: Descent Poseidon + xfBuild may do the job (but Poseidon needs work to run on linux and mac). Eclipse itself is too heavy and too java's.

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Tomas Lindquist Olsen
On Fri, Oct 16, 2009 at 12:06 PM, Jacob Carlborg d...@me.com wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some json for an IDE to use, the whole tool chain

Re: T[new] misgivings

2009-10-16 Thread Max Samukha
On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright newshou...@digitalmars.com wrote: Don wrote: Max Samukha wrote: // arrays are true reference types int[new] a = [1, 2, 3]; b = a; a.length = 22; assert (a.length == b.length); This makes perfect sense to me. The rule would be: If 'x' is

Re: T[new] misgivings

2009-10-16 Thread Fawzi Mohamed
On 2009-10-16 11:49:12 +0200, Walter Bright newshou...@digitalmars.com said: Don wrote: There are two sensible options: I see the question as, is T[new] a value type or a reference type? I see it as a reference type, and so assignment should act like a reference assignment, not a value

Re: T[new] misgivings

2009-10-16 Thread Fawzi Mohamed
On 2009-10-16 13:54:03 +0200, Max Samukha spam...@d-coding.com said: On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright newshou...@digitalmars.com wrote: Don wrote: Max Samukha wrote: // arrays are true reference types int[new] a = [1, 2, 3]; b = a; a.length = 22; assert (a.length ==

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Ary Borenszweig
Denis Koroskin wrote: On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some json for an IDE to

Re: T[new] misgivings

2009-10-16 Thread Don
Fawzi Mohamed wrote: On 2009-10-16 13:54:03 +0200, Max Samukha spam...@d-coding.com said: On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright newshou...@digitalmars.com wrote: Don wrote: Max Samukha wrote: // arrays are true reference types int[new] a = [1, 2, 3]; b = a; a.length = 22;

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Denis Koroskin
On Fri, 16 Oct 2009 16:20:31 +0400, Ary Borenszweig a...@esperanto.org.ar wrote: Denis Koroskin wrote: On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Jacob Carlborg
On 10/16/09 12:58, Tomas Lindquist Olsen wrote: On Fri, Oct 16, 2009 at 12:06 PM, Jacob Carlborgd...@me.com wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Jacob Carlborg
On 10/16/09 13:03, digited wrote: Jacob Carlborg Wrote: IDE: Descent Poseidon + xfBuild may do the job (but Poseidon needs work to run on linux and mac). Eclipse itself is too heavy and too java's. I totally forgot about Poseidon. It has already been ported to the new DWT library, I

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Jacob Carlborg
On 10/16/09 14:27, Denis Koroskin wrote: On Fri, 16 Oct 2009 16:20:31 +0400, Ary Borenszweig a...@esperanto.org.ar wrote: Denis Koroskin wrote: On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote: Here is my thoughts and what I think is needed to build a really good IDE and

Re: T[new] misgivings

2009-10-16 Thread Max Samukha
On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote: Yes, but you could allocate the data immediately after the Array structure, so you only have one allocation. And in the common case, where it never exceeds the original capacity, they stay together and preserve cache locality.

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Don wrote: Max Samukha wrote: On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I talked to Walter about T[new] today and it seems we are having a disagreement. I'd prefer Walter's way with a provision that array literals are immutable and

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Walter Bright wrote: Don wrote: There are two sensible options: I see the question as, is T[new] a value type or a reference type? I see it as a reference type, and so assignment should act like a reference assignment, not a value assignment. I understand that, but to me that's an example

Re: Communicating between in and out contracts

2009-10-16 Thread Andrei Alexandrescu
Walter Bright wrote: Rainer Deyke wrote: Andrei Alexandrescu wrote: Eiffel offers the old keyword that refers to the old object in a postcondition. But it seems quite wasteful to clone the object just to have a contract look at a little portion of the old object. You don't need to clone the

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Walter Bright wrote: I think it would be very strange to have T[] behave like a reference type (which it does now) and T[new] to behave like a value type. T[] is not a reference type. Andrei

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Max Samukha wrote: On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote: Yes, but you could allocate the data immediately after the Array structure, so you only have one allocation. And in the common case, where it never exceeds the original capacity, they stay together and

Re: T[new] misgivings

2009-10-16 Thread Don
Don wrote: Andrei Alexandrescu wrote: Don wrote: Max Samukha wrote: On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I talked to Walter about T[new] today and it seems we are having a disagreement. I'd prefer Walter's way with a provision that

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Don wrote: In case this isn't clear: real [] sinsTable = [ sin(1.0), sin(2.0), sin(3.0), sin(4.0) ]; How do you do this so that the entries in the table are calculated at compile time? static? Andrei

Re: T[new] misgivings

2009-10-16 Thread Andrei Alexandrescu
Lutger wrote: Just to understand it: int[new] a; int[new] b; a = [1,2,3]; b = a; In your book, the last statement would copy contents of a into b and b.ptr != a.ptr while according to walter, b would rebind to a? Well no. In the case above b would rebind to a, which is consistent with:

Re: T[new] misgivings

2009-10-16 Thread Don
Andrei Alexandrescu wrote: Don wrote: In case this isn't clear: real [] sinsTable = [ sin(1.0), sin(2.0), sin(3.0), sin(4.0) ]; How do you do this so that the entries in the table are calculated at compile time? static? Andrei That's still not compile time. They're initialized in the

Re: T[new] misgivings

2009-10-16 Thread Max Samukha
On Fri, 16 Oct 2009 09:00:27 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Don wrote: Max Samukha wrote: On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I talked to Walter about T[new] today and it seems we are having a

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Frank Benoit
Jacob Carlborg schrieb: On 10/16/09 13:03, digited wrote: Jacob Carlborg Wrote: IDE: Descent Poseidon + xfBuild may do the job (but Poseidon needs work to run on linux and mac). Eclipse itself is too heavy and too java's. I totally forgot about Poseidon. It has already been ported to the

Re: T[new] misgivings

2009-10-16 Thread Denis Koroskin
On Fri, 16 Oct 2009 18:30:24 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Lutger wrote: Just to understand it: int[new] a; int[new] b; a = [1,2,3]; b = a; In your book, the last statement would copy contents of a into b and b.ptr != a.ptr while according to walter, b

Re: T[new] misgivings

2009-10-16 Thread Leandro Lucarella
Andrei Alexandrescu, el 16 de octubre a las 09:12 me escribiste: Max Samukha wrote: On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote: Yes, but you could allocate the data immediately after the Array structure, so you only have one allocation. And in the common case, where it

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Leandro Lucarella
Ary Borenszweig, el 16 de octubre a las 14:20 me escribiste: I can't agree more. Everything you wrote is in my TODO list, starting with a compiler, which already compiles most of the druntime (and hopefully will compile it fully by the end of this week). I'll release it to public as soon as

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Denis Koroskin
On Fri, 16 Oct 2009 20:11:25 +0400, Leandro Lucarella llu...@gmail.com wrote: Ary Borenszweig, el 16 de octubre a las 14:20 me escribiste: I can't agree more. Everything you wrote is in my TODO list, starting with a compiler, which already compiles most of the druntime (and hopefully will

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Lutger
Jacob Carlborg wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some json for an IDE to use, the whole tool chain needs to be revised. I think this list is what

Re: T[new] misgivings

2009-10-16 Thread Jason House
Andrei Alexandrescu Wrote: Walter Bright wrote: I think it would be very strange to have T[] behave like a reference type (which it does now) and T[new] to behave like a value type. T[] is not a reference type. Andrei While true, normal use will be the same as if it was a reference

Re: Delegate perfomance (outrage was redherring)

2009-10-16 Thread Justin Johansson
bearophile Wrote: Justin Johansson: The results are not clear cut at all this time. So what's going on? I don't know. I have a certain experience of benchmarks now, and I know they are tricky. I usually like to help people understand they don't understand what's going on in their

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Nick Sabalausky
Denis Koroskin 2kor...@gmail.com wrote in message news:op.u1v7jdgco7c...@korden-pc... Yes, it's a DMD port. Unfortunately, there is no other mature D front-end at present. Other folks are working on D compilers (dil, dang, ...) but the progress is very slow. FWIW, I've been meaning to try

Re: Communicating between in and out contracts

2009-10-16 Thread Jason House
Andrei Alexandrescu Wrote: Walter Bright wrote: Rainer Deyke wrote: Andrei Alexandrescu wrote: Eiffel offers the old keyword that refers to the old object in a postcondition. But it seems quite wasteful to clone the object just to have a contract look at a little portion of the old

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Ellery Newcomer
Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.u1v7jdgco7c...@korden-pc... Yes, it's a DMD port. Unfortunately, there is no other mature D front-end at present. Other folks are working on D compilers (dil, dang, ...) but the progress is very slow. FWIW,

Re: Communicating between in and out contracts

2009-10-16 Thread Andrei Alexandrescu
Jason House wrote: if fun or gun is impure, then they should not be callable by the contracts. Because of that, order is irrelevant. 1. Restricting calls to pure functions is sensible, but was deemed too restrictive. 2. Even so, there's difficulty on what to cache. The amount cached may

Re: Communicating between in and out contracts

2009-10-16 Thread Denis Koroskin
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote: if fun or gun is impure, then they should not be callable by the contracts. Because of that, order is irrelevant. 1. Restricting calls to pure functions is sensible, but was

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Nick Sabalausky
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.u1v7jdgco7c...@korden-pc... Yes, it's a DMD port. Unfortunately, there is no other mature D front-end at

Re: Communicating between in and out contracts

2009-10-16 Thread Denis Koroskin
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote: if fun or gun is impure, then they should not be callable by the contracts. Because of that, order

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Justin Johansson
Nick Sabalausky Wrote: Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.u1v7jdgco7c...@korden-pc... Yes, it's a DMD port. Unfortunately, there is no other

Re: Communicating between in and out contracts

2009-10-16 Thread Rainer Deyke
Andrei Alexandrescu wrote: class A { int fun() { ... } int gun(int) { ... } int foo() in { } out(result) { if (old.fun()) assert(old.gun(5)); else assert(old.fun() + old.gun(6)); foreach (i; 1 .. old.fun())

Re: Communicating between in and out contracts

2009-10-16 Thread Andrei Alexandrescu
Rainer Deyke wrote: Andrei Alexandrescu wrote: class A { int fun() { ... } int gun(int) { ... } int foo() in { } out(result) { if (old.fun()) assert(old.gun(5)); else assert(old.fun() + old.gun(6)); foreach (i; 1 ..

Re: Communicating between in and out contracts

2009-10-16 Thread Denis Koroskin
On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote: if fun or gun is

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Nick Sabalausky
Justin Johansson n...@spam.com wrote in message news:hbamfa$v3...@digitalmars.com... Nick Sabalausky Wrote: Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message

Re: Communicating between in and out contracts

2009-10-16 Thread Andrei Alexandrescu
Denis Koroskin wrote: On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote:

Re: MathExp: KISS or All-Out?

2009-10-16 Thread Bill Baxter
On Fri, Oct 16, 2009 at 2:57 AM, Fawzi Mohamed fmoha...@mac.com wrote: On 2009-10-16 11:13:59 +0200, gzp ga...@freemail.hu said: language_fan írta: Thu, 15 Oct 2009 02:04:09 -0400, Chad J thusly wrote: I'm reminded of how annoying it is when there are different libraries for a language

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Ellery Newcomer
Nick Sabalausky wrote: Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.u1v7jdgco7c...@korden-pc... Yes, it's a DMD port. Unfortunately, there is no other mature

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Ellery Newcomer
Nick Sabalausky wrote: Justin Johansson n...@spam.com wrote in message news:hbamfa$v3...@digitalmars.com... Nick Sabalausky Wrote: Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote

Re: Communicating between in and out contracts

2009-10-16 Thread Jason House
Andrei Alexandrescu Wrote: Jason House wrote: if fun or gun is impure, then they should not be callable by the contracts. Because of that, order is irrelevant. 1. Restricting calls to pure functions is sensible, but was deemed too restrictive. I don't know about others, but my use of

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Christopher Wright
Jacob Carlborg wrote: On 10/16/09 12:58, Tomas Lindquist Olsen wrote: GtkD supports Glade. Yes, but GtkD doesn't use native controls. A minor point, I think. Eclipse doesn't look very native and has widespread acceptance.

std.stream bugs

2009-10-16 Thread dsimcha
There's been talk here before about deprecating and replacing std.stream. I've found some annoying corner case bugs in it and also find it rather annoying that it doesn't work right with things like ranges and immutable strings. Should I file bug reports and patches for some of this stuff, or is

Re: Communicating between in and out contracts

2009-10-16 Thread Lutger
Denis Koroskin wrote: On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote:

Re: Communicating between in and out contracts

2009-10-16 Thread Andrei Alexandrescu
Lutger wrote: Denis Koroskin wrote: On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com wrote: On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Eric Suen
Lutger wrote Jacob Carlborg wrote: Here is my thoughts and what I think is needed to build a really good IDE and maybe get some attention from the enterprise. It's really not enough for the compiler to output some json for an IDE to use, the whole tool chain needs to be revised. I think

Re: Communicating between in and out contracts

2009-10-16 Thread Rainer Deyke
Andrei Alexandrescu wrote: Rats, I meant assert(old.gun(i * i)). That's what compounds the difficulty of the example. That wouldn't be allowed. More specifically 'old(gun(i * i))' wouldn't be allowed. 'old(this).gun(i * i)' would be allowed, but probably wouldn't do what you want it to do.

Re: The D Manifesto

2009-10-16 Thread AJ
Frank Fuente wrote: Justin Johansson Wrote: Frank Fuente Wrote: Justin Johansson Wrote: Where is it? [Ed, remembering of course that .. The most important thing is remembering that black text on a white screen carries absolutely no emotional information whatsoever, in either

Re: So many years I was following D...

2009-10-16 Thread AJ
bearophile wrote: Iamgottingcrazy: Should I bear this?? With D1 it seems to work: http://codepad.org/hpslrHHs Bye, bearophile He had a technical problem and worded his subject line that way?

Re: Goodbye

2009-10-16 Thread AJ
Walter Bright wrote: Nick Sabalausky wrote: Bios usually are self-written (how would the publisher know the author's strengths better and be able to write about it better than the author themself?), and the whole point of them is to make the person look good to help sell a book (or whatever

Working with files over 2GB in D2

2009-10-16 Thread dsimcha
Does anyone know how to work with huge (2GB+) files in D2? std.stream has overflow bugs (I haven't isolated them yet) and can't return their size correctly, std.stdio.File throws a ConvOverflowError in seek() because fseek() apparently takes an int when it should take a long, and std.file only

Re: Goodbye

2009-10-16 Thread AJ
Chris Nicholson-Sauls wrote: The most important thing is remembering that black text on a white screen carries absolutely no emotional information whatsoever, in either direction, in any case. 1 -- panic! THAT DOES NOT COMPUTE! DANGER, DANGER, Will Robinson!

Re: Goodbye

2009-10-16 Thread AJ
Yigal Chripun wrote: not all men are born equal

Re: The D Manifesto

2009-10-16 Thread Jeremie Pelletier
AJ wrote: Frank Fuente wrote: Justin Johansson Wrote: Frank Fuente Wrote: Justin Johansson Wrote: Where is it? [Ed, remembering of course that .. The most important thing is remembering that black text on a white screen carries absolutely no emotional information whatsoever, in either

Re: Goodbye

2009-10-16 Thread AJ
Andrei Alexandrescu wrote: Jarrett Billingsley wrote: I'm done. After seeing how Andrei is behaving, I really am done. Bye. Relax. Walter and I are in touch and always agree in advance about the features that need to be present in the language by the time the book is in print. It's not like

Re: Working with files over 2GB in D2

2009-10-16 Thread Jeremie Pelletier
Jeremie Pelletier wrote: dsimcha wrote: Does anyone know how to work with huge (2GB+) files in D2? std.stream has overflow bugs (I haven't isolated them yet) and can't return their size correctly, std.stdio.File throws a ConvOverflowError in seek() because fseek() apparently takes an int

Re: Working with files over 2GB in D2

2009-10-16 Thread Jeremie Pelletier
dsimcha wrote: Does anyone know how to work with huge (2GB+) files in D2? std.stream has overflow bugs (I haven't isolated them yet) and can't return their size correctly, std.stdio.File throws a ConvOverflowError in seek() because fseek() apparently takes an int when it should take a long, and

Re: D marketplace

2009-10-16 Thread AJ
bearophile wrote: Walter Bright Wrote: Is this something needed? At the moment I don't see a lot of business D-related. At the moment? If the boat has a hole in it, tell them immediately.

Re: Working with files over 2GB in D2

2009-10-16 Thread dsimcha
== Quote from Jeremie Pelletier (jerem...@gmail.com)'s article dsimcha wrote: Does anyone know how to work with huge (2GB+) files in D2? std.stream has overflow bugs (I haven't isolated them yet) and can't return their size correctly, std.stdio.File throws a ConvOverflowError in seek()

Who is Walter Bright?

2009-10-16 Thread AJ
Who is Walter Bright?

Re: The D Manifesto

2009-10-16 Thread Nick Sabalausky
Jeremie Pelletier jerem...@gmail.com wrote in message news:hbbh3e$2bs...@digitalmars.com... AJ wrote: Frank Fuente wrote: white text on a black screen - its like The Heart of Darkness :-) Well, whatever that means. But, call me stupid, but white backgrounds are hard on they eyes! So, all

Re: Who is Walter Bright?

2009-10-16 Thread Nick Sabalausky
AJ a...@nospam.net wrote in message news:hbbiin$2f2...@digitalmars.com... Who is Walter Bright? I really, *really*, hate to be one of these people, but... http://www.google.com/search?q=Walter+Bright If that's not quite what you're asking, maybe you could be more specific?

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Nick Sabalausky
Christopher Wright dhase...@gmail.com wrote in message news:hbarno$188...@digitalmars.com... Jacob Carlborg wrote: On 10/16/09 12:58, Tomas Lindquist Olsen wrote: GtkD supports Glade. Yes, but GtkD doesn't use native controls. A minor point, I think. Eclipse doesn't look very native and

Re: Working with files over 2GB in D2

2009-10-16 Thread Frank Benoit
dsimcha schrieb: == Quote from Jeremie Pelletier (jerem...@gmail.com)'s article dsimcha wrote: Does anyone know how to work with huge (2GB+) files in D2? std.stream has overflow bugs (I haven't isolated them yet) and can't return their size correctly, std.stdio.File throws a

Re: dmd support for IDEs and the D tool chain

2009-10-16 Thread Nick Sabalausky
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbaom1$138...@digitalmars.com... Nick Sabalausky wrote: Ellery Newcomer ellery-newco...@utulsa.edu wrote in message news:hbak0n$q5...@digitalmars.com... I could count the number of places that are ambiguous syntactically or

HWND is NULL but GetLastError returns 0x00

2009-10-16 Thread Zarathustra
I have the problem with the following code in D2: CreateWindowEx returns NULL but I haven't got idea why? module test; import base; static import user32; static import kernel32; void MsgBox(immutable char [] o_str){ user32.messageBox(null, cast(str)o_str, cast(str)msg, 0x0); } struct

Associative array trouble

2009-10-16 Thread Justin Johansson
What's wrong with this simple symbol table class? class Symbol { private char[] id; private static Symbol[char[]] symtab; private this( string id) { this.id = id; } static Symbol opCall( char[] id) { Symbol sym = symtab[id]; // *** ArrayBoundsError here if

Re: Associative array trouble

2009-10-16 Thread Bill Baxter
You query presence of a key in an AA using 'in' if (id in symtab) { Symbol sym = symtab[id]; ... } else { .. } Or this avoids a double lookup if the symbol is present: Symbol* pSym = id in symtab; if (pSym !is null) { Symbol sym = *pSym; ... } else

Re: Associative array trouble

2009-10-16 Thread Justin Johansson
Bill Baxter Wrote: You query presence of a key in an AA using 'in' Thank you Bill .. esp. the tip to avoid double lookup. JJ

Re: HWND is NULL but GetLastError returns 0x00

2009-10-16 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zarathustra wrote: I have the problem with the following code in D2: CreateWindowEx returns NULL but I haven't got idea why? snip That's because your are not properly processing all of the messages that are involved in window creation. See:

Re: Associative array trouble

2009-10-16 Thread Bill Baxter
On Fri, Oct 16, 2009 at 4:11 PM, Manfred_Nowak svv1...@hotmail.com wrote: Bill Baxter wrote:   Symbol* pSym = id in symtab; shouldn't the compiler sort this out? I'm not really sure what you mean, but I think the answer is that there's a difference between an unset entry and one that's set

Sorry, I just love templates, AAs and mixins :)

2009-10-16 Thread Saaa
public void addToAA(char[] var_name, KT, ET)(KT key, ET element) { mixin(ET.stringof~`[]* elements = key in `~var_name~`;`); if( elements == null ) { ET[] temp; temp.length = 1; temp[0] = element; mixin(var_name~`[key] = temp;`); } else { (*elements).length =

Re: Associative array trouble

2009-10-16 Thread bearophile
Bill Baxter: Or this avoids a double lookup if the symbol is present: In LDC both forms (and several other ones, if the usage of the pointer is local, and it doesn't get passed away) get simplified to the same single lookup code :-) (but not in DMD). So much that you may even think of in to

[Issue 3379] [tdpl] Parameter names not visible in the if clause of a template

2009-10-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3379 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au

[Issue 3376] [tdpl] Multiple ranged case labels don't work

2009-10-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3376 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC||r.sagita...@gmx.de

  1   2   >