Re: the bit[] type

2010-09-24 Thread Emil Madsen
Now I'm just curious, how does D represent a bool type as false and true, I take it that false is 0b, is true anything but that? - or will the compiler make sure, that its always 0b or would it be 0b0001? (as 0b would be -1 if signed) - is there a given standard for

Re: the bit[] type

2010-09-24 Thread Emil Madsen
Just because my last message, wasn't long enough I wanted to add more: The real issue for me, is that the debate about bool and bit, has been about if one of the other should be implemented, thats not the debate for me, as I really do think, these types are quite different, even tho they

Visual D 0.3.16 released

2010-09-24 Thread Rainer Schuetze
Hi, as the new version of Visual D sports some interesting new features, I'd like to announce it here for a wider public. Some of the highlights are * now supports and installs the Mago debugger (http://dsource.org/projects/mago_debugger) * new profiler window to browse trace.log (see

Re: Visual D 0.3.16 released

2010-09-24 Thread dsimcha
== Quote from Rainer Schuetze (r.sagita...@gmx.de)'s article Hi, as the new version of Visual D sports some interesting new features, I'd like to announce it here for a wider public. Some of the highlights are * now supports and installs the Mago debugger

Re: Visual D 0.3.16 released

2010-09-24 Thread Rainer Schuetze
I'm using it for D2 only, but Visual D is mostly agnostic to the D version. Anything intelligent is using the compiler generated JSON files as browse information, and this is available for both versions. The areas that might be incorrect for D1 source code are - syntax highlighting of D2

Re: Visual D 0.3.16 released

2010-09-24 Thread Aldo Nunez
Rainer Schuetze r.sagita...@gmx.de wrote: * now supports and installs the Mago debugger (http://dsource.org/projects/mago_debugger) Thanks a lot, Rainer, for including the debugger with Visual D. I know you put some work into that, and it's definitely appreciated. * new profiler

Re: The Wrong Stuff

2010-09-24 Thread Adam D. Ruppe
On Thu, Sep 23, 2010 at 08:59:20PM -0700, Walter Bright wrote: I'm probably alone in this, but I've always liked the C behavior and never had a problem with it. It's probably from my asm days, as it works just like labeled asm statements do. Me too, for the same reason.

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Steven Schveighoffer
On Thu, 23 Sep 2010 18:26:28 -0400, Robert Jacques sandf...@jhu.edu wrote: On Thu, 23 Sep 2010 10:05:45 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 22 Sep 2010 21:48:19 -0400, Robert Jacques sandf...@jhu.edu wrote: On Wed, 22 Sep 2010 13:10:36 -0400, Steven

Re: The Wrong Stuff

2010-09-24 Thread BCS
Hello Jonathan, Indeed, though it might be okay to allow totally empty case statements on the theory that the programmer pretty much couldn't have meant anything other than fallthrough - though given that D has the syntax to do that as one case statement, it might be reasonable (and probably

Re: The Wrong Stuff

2010-09-24 Thread Andrei Alexandrescu
On 9/23/10 22:59 CDT, Walter Bright wrote: Jonathan M Davis wrote: I don't really mind it how it is, but I've known plenty of programmers who hated the fallthrough behavior in other languages. So, it would likely be a good change to make. I'm probably alone in this, but I've always liked the

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Don
retard wrote: Thu, 23 Sep 2010 22:35:23 +0200, Tomek Sowiński wrote: dsimcha napisał: 1. The documentation that says that the parameters need to be convertible to immutable is outdated. This was changed a while ago to only requiring const. Good to know. Yet, I wonder why such changes are

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Robert Jacques
On Fri, 24 Sep 2010 09:32:40 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Thu, 23 Sep 2010 18:26:28 -0400, Robert Jacques sandf...@jhu.edu wrote: On Thu, 23 Sep 2010 10:05:45 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 22 Sep 2010 21:48:19 -0400, Robert

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Steven Schveighoffer
On Fri, 24 Sep 2010 10:33:10 -0400, Robert Jacques sandf...@jhu.edu wrote: On Fri, 24 Sep 2010 09:32:40 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: structs can have value copy semantics. But for a struct that contains a reference, the references have reference semantics, which

Re: LazyInterface (simplified Boost.Interfaces)

2010-09-24 Thread Andrei Alexandrescu
On 9/23/10 14:13 CDT, kenji hara wrote: I supported covariance of return types. Please check it. Excellent! And sorry, indeed I got it backwards: if the interface returns e.g. long, the implementation is allowed to return int. Generally if the interface returns T, the implementation is

Re: The Wrong Stuff

2010-09-24 Thread lurker
Andrei Alexandrescu Wrote: On 9/23/10 22:59 CDT, Walter Bright wrote: Jonathan M Davis wrote: I don't really mind it how it is, but I've known plenty of programmers who hated the fallthrough behavior in other languages. So, it would likely be a good change to make. I'm probably alone

Re: The Wrong Stuff

2010-09-24 Thread Andrei Alexandrescu
On 9/24/10 10:56 CDT, lurker wrote: Andrei Alexandrescu Wrote: On 9/23/10 22:59 CDT, Walter Bright wrote: Jonathan M Davis wrote: I don't really mind it how it is, but I've known plenty of programmers who hated the fallthrough behavior in other languages. So, it would likely be a good change

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Robert Jacques
On Fri, 24 Sep 2010 10:47:16 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 24 Sep 2010 10:33:10 -0400, Robert Jacques sandf...@jhu.edu wrote: On Fri, 24 Sep 2010 09:32:40 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: structs can have value copy semantics. But

Re: The Wrong Stuff

2010-09-24 Thread Jonathan M Davis
On Friday, September 24, 2010 08:56:22 lurker wrote: Andrei Alexandrescu Wrote: On 9/23/10 22:59 CDT, Walter Bright wrote: Jonathan M Davis wrote: I don't really mind it how it is, but I've known plenty of programmers who hated the fallthrough behavior in other languages. So, it would

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Steven Schveighoffer
On Fri, 24 Sep 2010 12:16:23 -0400, Robert Jacques sandf...@jhu.edu wrote: On Fri, 24 Sep 2010 10:47:16 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 24 Sep 2010 10:33:10 -0400, Robert Jacques sandf...@jhu.edu wrote: On Fri, 24 Sep 2010 09:32:40 -0400, Steven

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Robert Jacques
On Fri, 24 Sep 2010 13:09:05 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 24 Sep 2010 12:16:23 -0400, Robert Jacques sandf...@jhu.edu wrote: On Fri, 24 Sep 2010 10:47:16 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 24 Sep 2010 10:33:10 -0400, Robert

Re: DMD source overview?

2010-09-24 Thread Juanjo Alvarez
On Wed, 15 Sep 2010 15:34:47 -0400, Nick Sabalausky a...@a.a wrote: So does everyone else; you will be a * I've always wanted to be a pointer! Ok, but Try{ ! to be a void* } :)

Re: The Wrong Stuff

2010-09-24 Thread bearophile
Jonathan M Davis: Indeed, though it might be okay to allow totally empty case statements on the theory that the programmer pretty much couldn't have meant anything other than fallthrough - though given that D has the syntax to do that as one case statement, it might be reasonable (and

About DMD intrinsics?

2010-09-24 Thread Nick Sabalausky
I'm in the (very) eary stages of using the dmdfe (ddmd, actualy) to make a D to Haxe converter (which would mean D to PHP/Flash/Neko/C++), and I figure I'll need to have an compiler-intrinsic function (or functions) to access Haxe directly. I'm not familiar with how dmd does intrinsics, and I

Re: The Wrong Stuff

2010-09-24 Thread Daniel Murphy
Walter Bright newshou...@digitalmars.com wrote in message news:i7h7o4$236...@digitalmars.com... I'm probably alone in this, but I've always liked the C behavior and never had a problem with it. It's probably from my asm days, as it works just like labeled asm statements do. I learnt to

Re: Proposal: Relax rules for 'pure'

2010-09-24 Thread Jason House
Don Wrote: Don wrote: The docs currently state that: PROPOSAL: Drop the first requirement. Only one requirement is necessary: A pure function does not read or write any global mutable state. Wow. It seems that not one person who has responded so far has understood this

Re: Two questions about converting a C header file

2010-09-24 Thread Sean Kelly
Juanjo Alvarez Wrote: Hi, I'm converting a C header file but there are two things left: 1. If the header file contains some D reserved word (in my case, in and out in a struct) what is the best way to workaround it? Do you write another C file and link about it? The convention I use

Where have all the sources gone?

2010-09-24 Thread BCS
I've found the phobos source: http://www.dsource.org/projects/phobos/browser/trunk/phobos The DMD source: http://www.dsource.org/projects/dmd/browser/trunk/ and this seems to be the runtime: http://www.dsource.org/projects/druntime/browser/trunk/ But I can't seem to even find object.d or

Problem with compiling code with DMD 2.049

2010-09-24 Thread Andy Elvey
Hi all - I'm a first-timer here and very keen to get into some D coding! Unfortunately, I have a problem. I've installed the one-click .deb package from Digital Mars, but when I try to compile a very simple D program, I get this message - dmd -w -c hello.d (in directory: /home/andy/d_stuff)

Re: Problem with compiling code with DMD 2.049

2010-09-24 Thread Andy Elvey
Hi Jonathan! Thanks very much for your help there! I'll have a look at dmd.conf and will also look at the docs on it. I'm sure it won't be long before I'm up and running :) Thanks again - bye for now - - Andy

[Issue 4934] New: Cannot compile an overloaded operator returning by ref

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4934 Summary: Cannot compile an overloaded operator returning by ref Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 4718] Few Phobos modules renames

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4718 Austin Hastings ah0801...@yahoo.com changed: What|Removed |Added CC|

[Issue 4935] New: std.bitmanip: bitfields!() template with trailing unnamed field does not work

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935 Summary: std.bitmanip: bitfields!() template with trailing unnamed field does not work Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW

[Issue 4718] Few Phobos modules renames

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4718 --- Comment #5 from bearophile_h...@eml.cc 2010-09-24 09:46:14 PDT --- See also this post by L. T. Kyllingstad, Phobos has way too many modules : http://article.gmane.org/gmane.comp.lang.d.phobos/2472 -- Configure issuemail:

[Issue 4928] [patch] RDMD mistakes object, response and other files for the program file.

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

[Issue 4929] DirEntry does not always report correct type of file on linux

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

[Issue 4930] [patch] RDMD: Cmd line sent to dmd can be too long

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

[Issue 4930] [patch] RDMD: Cmd line sent to dmd can be too long

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4930 --- Comment #1 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 13:56:16 PDT --- Created an attachment (id=773) Combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 Combined patch for issues #4672, #4683, #4684, #4688,

[Issue 4928] [patch] RDMD mistakes object, response and other files for the program file.

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4928 --- Comment #3 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 13:57:54 PDT --- A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here: http://d.puremagic.com/issues/show_bug.cgi?id=4930 -- Configure

[Issue 4688] [patch] rdmd/Win: rdmd'ed program's output appears after cmd prompt

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4688 --- Comment #5 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 13:58:53 PDT --- A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here: http://d.puremagic.com/issues/show_bug.cgi?id=4930 -- Configure

[Issue 4684] [patch] rdmd: Assert failure on -od without trailing slash

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4684 --- Comment #4 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 14:00:31 PDT --- A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here: http://d.puremagic.com/issues/show_bug.cgi?id=4930 -- Configure

[Issue 4683] [patch] rdmd: -od clobbers preceeding -of

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4683 --- Comment #3 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 14:01:30 PDT --- A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here: http://d.puremagic.com/issues/show_bug.cgi?id=4930 -- Configure

[Issue 4672] [patch] rdmd fails when -I is needed

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4672 --- Comment #5 from Nick Sabalausky cbkbbej...@mailinator.com 2010-09-24 14:02:34 PDT --- A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here: http://d.puremagic.com/issues/show_bug.cgi?id=4930 -- Configure

[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935 Mitch Hayenga mitch.haye...@gmail.com changed: What|Removed |Added CC|

[Issue 4936] New: Regression(2.049) std.algorithm.completeSort doesn't match string arrays

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4936 Summary: Regression(2.049) std.algorithm.completeSort doesn't match string arrays Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW

[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935 --- Comment #2 from Austin Hastings ah0801...@yahoo.com 2010-09-24 18:01:07 PDT --- Entertainingly, this is the real code I was trying to work on: union Instruction { ushort raw; // Basic opcode + data mixin(bitfields!(

[Issue 4936] Regression(2.049) std.algorithm.completeSort doesn't match string arrays

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

[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work

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

[Issue 4937] std.bitmanip: Allow repeated (identical) bitfield declarations

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4937 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 4425] More bells whistles for bitfields

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4425 --- Comment #1 from bearophile_h...@eml.cc 2010-09-24 18:47:19 PDT --- See also bug 4937 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---