Re: dmd 1.047 and 2.032 releases

2009-09-06 Thread Graham St Jack
Its great to see so many bugs being sorted out. However, I am having all kinds of trouble with shared, which up until now I have been able to fairly easily sidestep. Here is a cut-down example of what I am trying to do, which is to have one thread acquiring data and passing it on to another

Re: Compiled dmd2.032 in VC++ 2009!

2009-09-06 Thread Jeremie Pelletier
Rainer Deyke Wrote: Jeremie Pelletier wrote: bearophile Wrote: - if(de.name[$-2 .. $] == .c) is a bit unsafe, (...) I don't see how unsafe that is in this context. Potential buffer underrun. http://www.digitalmars.com/d/1.0/arrays.html: A program may not rely on array bounds checking

D on the Objective-C runtime?

2009-09-06 Thread Jacob Carlborg
I've been thinking for a while what it would take to get D running on the Objective-C runtime, in other words a D object will actually be an objc object, kind of like MacRuby but for D. How difficult it would be, how much work, what needs to change, both the runtime and the compiler? And if it

Re: D on the Objective-C runtime?

2009-09-06 Thread Michel Fortin
On 2009-09-06 06:10:03 -0400, Jacob Carlborg d...@me.com said: I've been thinking for a while what it would take to get D running on the Objective-C runtime, in other words a D object will actually be an objc object, kind of like MacRuby but for D. How difficult it would be, how much work,

Error: mixin is not defined (dmd v2.032)

2009-09-06 Thread Tyro
the following appears on line 876 of control.d in the DFL package: mixin OpApplyAddIndex!(opApply, Control); Attempting to compile it results in the following error message: control.d(876): Error: mixin is not defined I've compiled my copy of DFL with every release of dmd starting with

Re: Error: mixin is not defined (dmd v2.032)

2009-09-06 Thread Denis Koroskin
On Sun, 06 Sep 2009 15:15:14 +0400, Tyro nos...@home.com wrote: the following appears on line 876 of control.d in the DFL package: mixin OpApplyAddIndex!(opApply, Control); Attempting to compile it results in the following error message: control.d(876): Error: mixin is not defined I've

Re: D on the Objective-C runtime?

2009-09-06 Thread Jacob Carlborg
On 9/6/09 12:51, Michel Fortin wrote: On 2009-09-06 06:10:03 -0400, Jacob Carlborg d...@me.com said: I've been thinking for a while what it would take to get D running on the Objective-C runtime, in other words a D object will actually be an objc object, kind of like MacRuby but for D. How

Re: D on the Objective-C runtime?

2009-09-06 Thread Michel Fortin
On 2009-09-06 07:52:27 -0400, Jacob Carlborg d...@me.com said: On 9/6/09 12:51, Michel Fortin wrote: On 2009-09-06 06:10:03 -0400, Jacob Carlborg d...@me.com said: I've been thinking for a while what it would take to get D running on the Objective-C runtime, in other words a D object will

Bug with patch

2009-09-06 Thread Michel Fortin
I submitted a Phobos bug with a patch. Now I wonder: should I signal it to someone or just leave it lying there until it's found and applied by someone? (Here's the bug: http://d.puremagic.com/issues/show_bug.cgi?id=3298.) -- Michel Fortin michel.for...@michelf.com http://michelf.com/

Re: Bug with patch

2009-09-06 Thread Christopher Wright
Michel Fortin wrote: I submitted a Phobos bug with a patch. Now I wonder: should I signal it to someone or just leave it lying there until it's found and applied by someone? (Here's the bug: http://d.puremagic.com/issues/show_bug.cgi?id=3298.) If it were assigned to someone, you should just

Re: D on the Objective-C runtime?

2009-09-06 Thread Christopher Wright
Michel Fortin wrote: Another approach is my D/Objective-C bridge: http://michelf.com/projects/d-objc-bridge/, which allows you to write a bridged class like below. It needs D1 and is not multithreaded, only can do classes (no protocols, no categories for now), but it works quite well for what

Re: Compiled dmd2.032 in VC++ 2009!

2009-09-06 Thread bearophile
Jeremie Pelletier: I usually test for the string length before slicing it. Me too, but: - mammals aren't perfect, and sometimes they forget things, etc. A compiler, once well programmed, will not forget such tests. - such tests added by me and you slow down code a little (but a good compiler

Re: D on the Objective-C runtime?

2009-09-06 Thread Michel Fortin
On 2009-09-06 08:32:43 -0400, Christopher Wright dhase...@gmail.com said: Off topic, but this would be a good place for user-defined attributes. Then you could write something like: @IBAction void openWindow(Object sender) {} Indeed... although IBAction isn't so bad as a mixin, it gets much

Re: Error: mixin is not defined (dmd v2.032)

2009-09-06 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Denis Koroskin wrote: On Sun, 06 Sep 2009 15:15:14 +0400, Tyro nos...@home.com wrote: the following appears on line 876 of control.d in the DFL package: mixin OpApplyAddIndex!(opApply, Control); Attempting to compile it results in the following

Re: Compiled dmd2.032 in VC++ 2009!

2009-09-06 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeremie Pelletier wrote: div0 Wrote: Jeremie Pelletier wrote: snip Sweet. If dmd can compile w/ VS outa the box, I'll start poking around in it. Hey you can knock mirco-soft all you like, but VS is the nuts. Yeah, I side with you here. I may

Re: Bug with patch

2009-09-06 Thread Andrei Alexandrescu
Michel Fortin wrote: I submitted a Phobos bug with a patch. Now I wonder: should I signal it to someone or just leave it lying there until it's found and applied by someone? (Here's the bug: http://d.puremagic.com/issues/show_bug.cgi?id=3298.) I can't test on OSX for the time being but I'll

Re: Compiled dmd2.032 in VC++ 2009!

2009-09-06 Thread Andrei Alexandrescu
Jeremie Pelletier wrote: Rainer Deyke Wrote: Jeremie Pelletier wrote: bearophile Wrote: - if(de.name[$-2 .. $] == .c) is a bit unsafe, (...) I don't see how unsafe that is in this context. Potential buffer underrun. http://www.digitalmars.com/d/1.0/arrays.html: A program may not rely on

Re: Compiled dmd2.032 in VC++ 2009!

2009-09-06 Thread Jeremie Pelletier
div0 Wrote: Jeremie Pelletier wrote: div0 Wrote: Jeremie Pelletier wrote: snip Sweet. If dmd can compile w/ VS outa the box, I'll start poking around in it. Hey you can knock mirco-soft all you like, but VS is the nuts. Yeah, I side with you here. I may not be a fan of the

Re: D naming style?

2009-09-06 Thread Stewart Gordon
Michel Fortin wrote: snip Here it is: http://www.digitalmars.com/d/2.0/dstyle.html. My style more or less resembles this, except: - Each indentation level is a tab character (by far the most sensible way to do things) - Usually one blank line between class methods, and two between

Derelict+Tango

2009-09-06 Thread Kamil Dabrowski
Well, I'm trying to compile Derelict with Tango and I see the following output from dmd: warning - io.File functionality has migrated to static functions within io.device.File buildme.d(176): Error: class buildme.Builder D compiler and phobos' object.d are mismatched buildme.d(248): Error:

Re: D on the Objective-C runtime?

2009-09-06 Thread Jacob Carlborg
On 9/6/09 15:12, Michel Fortin wrote: On 2009-09-06 08:32:43 -0400, Christopher Wright dhase...@gmail.com said: Off topic, but this would be a good place for user-defined attributes. Then you could write something like: @IBAction void openWindow(Object sender) {} Indeed... although IBAction

Re: Derelict+Tango

2009-09-06 Thread Moritz Warning
On Sun, 06 Sep 2009 13:30:08 -0400, Kamil Dabrowski wrote: Well, I'm trying to compile Derelict with Tango and I see the following output from dmd: [..] I have also read that Tango environment can be compiled only using Rebuild. So I do: rebuild buildme.d I had a quick look. buildme.d isn't

Re: Derelict+Tango

2009-09-06 Thread Moritz Warning
On Sun, 06 Sep 2009 18:54:06 +, Moritz Warning wrote: [..] No rebuild rebuild required for this step. On a second look, I see that buildme.d uses bud (some older build tool for D). I can tell you how I install derelict by hand: - download the trunk (zip archive is at

Re: Derelict+Tango

2009-09-06 Thread Nick Sabalausky
Kamil Dabrowski namecza...@gmail.com wrote in message news:h80rj0$2kf...@digitalmars.com... Well, I'm trying to compile Derelict with Tango and I see the following output from dmd: My dmd1 folder lies near tango folder. DMD is the latest 1.047 version and derelict r377 (also latest).

Re: Derelict+Tango

2009-09-06 Thread Jacob Carlborg
On 9/6/09 21:05, Moritz Warning wrote: On Sun, 06 Sep 2009 18:54:06 +, Moritz Warning wrote: [..] No rebuild rebuild required for this step. On a second look, I see that buildme.d uses bud (some older build tool for D). I can tell you how I install derelict by hand: - download the

Re: Derelict+Tango

2009-09-06 Thread Daniel Keep
Kamil Dabrowski wrote: Well, I'm trying to compile Derelict with Tango and I see the following output from dmd: warning - io.File functionality has migrated to static functions within io.device.File buildme.d(176): Error: class buildme.Builder D compiler and phobos' object.d are

Re: Derelict+Tango

2009-09-06 Thread Sam
To Jacob: Just wanna know whether you have upgraded your copy of DFL to dmd2032?If yes,can I ask for a copy again? Regards, Sam

dmg for Snow Leopard x86_64 ?

2009-09-06 Thread simon
Was just wondering if there were plans to create a Snow Leopard build of D 2.0?

Re: Derelict+Tango

2009-09-06 Thread Robert Jacques
On Sun, 06 Sep 2009 20:36:22 -0400, Sam samhudotsa...@gmail.com wrote: To Jacob: Just wanna know whether you have upgraded your copy of DFL to dmd2032?If yes,can I ask for a copy again? Regards, Sam Hi Sam, I've upgraded my copy of DFL to DMD 2.032: Here's the patch

Re: Derelict+Tango

2009-09-06 Thread Sam
Silly me.I asked another ppl here wrongly asked you,Sorry!

Re: Derelict+Tango

2009-09-06 Thread Sam
Hi Robert, Thank you so much! I compiled the dfl.lib and dfl_debug.lib successfully just by ran makelib2.bat( altered to my d path accordinly).Now the 2 lib files were there right in dmd\windows\lib,the src files were in dmd\import.With below code snippet: module d2; //: -dfl import dfl.all;

Re: DDL should become official part of DMD

2009-09-06 Thread BLS
JPF wrote: BLS wrote: c topic.. what do you think ? IMO : this could be a D killer feature. I don't know how complicated that would be (licensing issues, ...), but as a developer / user I would really like it: It's needed to implement stuff like addins in a convenient way. And it would be

Re: Derelict+Tango

2009-09-06 Thread Robert Jacques
On Sun, 06 Sep 2009 22:10:28 -0400, Sam samhudotsa...@gmail.com wrote: Hi Robert, Thank you so much! I compiled the dfl.lib and dfl_debug.lib successfully just by ran makelib2.bat( altered to my d path accordinly).Now the 2 lib files were there right in dmd\windows\lib,the src files were

D 2.00 official spec

2009-09-06 Thread Justin Johansson
Having trolled all over DM site in search for an official D 2.0 spec similar to that as exists for D 1.0 (spec_DMD_1.00.pdf), I seem to be out of luck. Does such a document exist and would someone please point me to it? Thanks for all help.

Re: D 2.00 official spec

2009-09-06 Thread Jeremie Pelletier
Justin Johansson Wrote: Having trolled all over DM site in search for an official D 2.0 spec similar to that as exists for D 1.0 (spec_DMD_1.00.pdf), I seem to be out of luck. Does such a document exist and would someone please point me to it? Thanks for all help. D2 is still in

Re: DDL should become official part of DMD

2009-09-06 Thread Tim_M
BLS Wrote: JPF wrote: BLS wrote: c topic.. what do you think ? IMO : this could be a D killer feature. I don't know how complicated that would be (licensing issues, ...), but as a developer / user I would really like it: It's needed to implement stuff like addins in a convenient

Re: delegate !is null

2009-09-06 Thread Saaa
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.uzqxxo1neav...@localhost.localdomain... On Fri, 04 Sep 2009 14:33:12 -0400, Saaa em...@needmail.com wrote: class C { private int i; int method() { return i; } } class D { private int delegate(void)

[Issue 3298] std.file.read on OSX: Memory allocation failed

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3298 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 3298] std.file.read on OSX: Memory allocation failed

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3298 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3298] std.file.read on OSX: Memory allocation failed

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3298 --- Comment #4 from Michel Fortin michel.for...@michelf.com 2009-09-06 15:14:58 EDT --- I can't see any trace of a recent change to std.file. The web interface doesn't have it either:

[Issue 3298] std.file.read on OSX: Memory allocation failed

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3298 --- Comment #5 from Andrei Alexandrescu and...@metalanguage.com 2009-09-06 12:28:10 PDT --- (In reply to comment #4) I can't see any trace of a recent change to std.file. The web interface doesn't have it either:

[Issue 3301] Undefined identifier error dependent on order of imports when a circular import is involved

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3301 Brad Roberts bra...@puremagic.com changed: What|Removed |Added Priority|P2 |P1

[Issue 3298] std.file.read on OSX: Memory allocation failed

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3298 --- Comment #6 from Michel Fortin michel.for...@michelf.com 2009-09-06 16:43:40 EDT --- Patched Phobos from SVN working fine, bug fixed. Thanks. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 3301] Undefined identifier error dependent on order of imports when a circular import is involved

2009-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3301 --- Comment #8 from Stewart Gordon s...@iname.com 2009-09-06 16:39:24 PDT --- I'm not sure how trimming it down can be that difficult - bz3301.d - public import bz3301a; public import bz3301b; - bz3301a.d - public import