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
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
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
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,
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
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
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
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
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/
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
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
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
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
-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
-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
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
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
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
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
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:
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
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
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
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).
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
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
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
Was just wondering if there were plans to create a Snow Leopard build of D 2.0?
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
Silly me.I asked another ppl here wrongly asked you,Sorry!
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;
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
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
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.
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
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
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)
http://d.puremagic.com/issues/show_bug.cgi?id=3298
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
Status|NEW |ASSIGNED
http://d.puremagic.com/issues/show_bug.cgi?id=3298
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
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:
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:
http://d.puremagic.com/issues/show_bug.cgi?id=3301
Brad Roberts bra...@puremagic.com changed:
What|Removed |Added
Priority|P2 |P1
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
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
44 matches
Mail list logo