Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell«?

2010-12-08 Thread Russel Winder
On Wed, 2010-12-08 at 17:29 -0800, Walter Bright wrote: > Walter Bright wrote: > > Andrei Alexandrescu wrote: > >> This seems pretty urgent. Walter? > > > > I asked Jordi, who prepares the .deb files. > > Should the binaries be installed on /usr/local/bin instead? No. The whole point of debs is

Re: const(Object)ref is here!

2010-12-08 Thread Walter Bright
Michel Fortin wrote: On 2010-12-08 17:26:02 -0500, Walter Bright said: Michel Fortin wrote: That said, what's a "tail const function"? applying tail const to a function type You mean as the return type? I'll add a unit test for that. But on the whole, I'd be very surprised to find probl

Re: DMD2 .deb fails to install

2010-12-08 Thread Jason House
Walter Bright Wrote: > Walter Bright wrote: > > Andrei Alexandrescu wrote: > >> This seems pretty urgent. Walter? > > > > I asked Jordi, who prepares the .deb files. > > Should the binaries be installed on /usr/local/bin instead? I'd vote for /dev/null Make a separate package for all the extra

Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell« ?

2010-12-08 Thread Christopher Nicholson-Sauls
On 12/08/10 19:50, Ellery Newcomer wrote: > Quick - which gets executed first - /usr/bin/* or /usr/local/bin/* ? > > Either way, someone or something is going to be surprised. > > It would probably be a better idea to either remove or rename the less > used ones. 'shell' is uncomfortably generic

Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell« ?

2010-12-08 Thread Ellery Newcomer
Quick - which gets executed first - /usr/bin/* or /usr/local/bin/* ? Either way, someone or something is going to be surprised. It would probably be a better idea to either remove or rename the less used ones. 'shell' is uncomfortably generic. Don't know if anyone does, but I have never used

Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell« ?

2010-12-08 Thread Walter Bright
Walter Bright wrote: Andrei Alexandrescu wrote: This seems pretty urgent. Walter? I asked Jordi, who prepares the .deb files. Should the binaries be installed on /usr/local/bin instead?

Re: const(Object)ref is here!

2010-12-08 Thread Jason House
Michel Fortin Wrote: > On 2010-12-08 17:26:02 -0500, Walter Bright said: > > > Michel Fortin wrote: > >> That said, what's a "tail const function"? > > > > applying tail const to a function type > > You mean as the return type? I'll add a unit test for that. But on the > whole, I'd be very su

Re: const(Object)ref is here!

2010-12-08 Thread Michel Fortin
On 2010-12-08 17:26:02 -0500, Walter Bright said: Michel Fortin wrote: That said, what's a "tail const function"? applying tail const to a function type You mean as the return type? I'll add a unit test for that. But on the whole, I'd be very surprised to find problems in the list of thin

Re: improvement request - enabling by-value-containers

2010-12-08 Thread Jonathan M Davis
On Wednesday, December 08, 2010 14:14:57 Simon Buerger wrote: > For Every lib its a design descision if containers should be value- or > reference-types. In C++ STL they are value-types (i.e. the > copy-constructor does a real copy), while in tango and phobos the > descision was to go for reference

Re: const(Object)ref is here!

2010-12-08 Thread Walter Bright
Michel Fortin wrote: That said, what's a "tail const function"? applying tail const to a function type

improvement request - enabling by-value-containers

2010-12-08 Thread Simon Buerger
For Every lib its a design descision if containers should be value- or reference-types. In C++ STL they are value-types (i.e. the copy-constructor does a real copy), while in tango and phobos the descision was to go for reference-types afaik, but I would like to be able to write value-types too

Re: const(Object)ref is here!

2010-12-08 Thread Steven Schveighoffer
On Wed, 08 Dec 2010 15:21:38 -0500, Michel Fortin wrote: On 2010-12-08 14:17:10 -0500, Walter Bright said: I haven't been able to look at it yet. But the const system in dmd is rather complex, and I'm not at all comfortable with saying it works without quite a lot of testing. Some t

Re: const(Object)ref is here!

2010-12-08 Thread Michel Fortin
On 2010-12-08 14:17:10 -0500, Walter Bright said: I haven't been able to look at it yet. But the const system in dmd is rather complex, and I'm not at all comfortable with saying it works without quite a lot of testing. Some things to test: 1. auto variable declarations 2. typeof 3. mangle

Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell« ?

2010-12-08 Thread Walter Bright
Andrei Alexandrescu wrote: This seems pretty urgent. Walter? I asked Jordi, who prepares the .deb files.

Re: const(Object)ref is here!

2010-12-08 Thread Walter Bright
Michel Fortin wrote: On 2010-12-08 03:43:45 -0500, Walter Bright said: Michel Fortin wrote: After a recent discussion on this list about tail-const class references, it became rather clear that someone interested would have to implement the thing if we were to have it. So I did it. See enh

Re: DMD2 .deb fails to install on Ubuntu 10.10 – j ust remove »shell«?

2010-12-08 Thread Mike Chaten
I filed this bug report some time ago. http://d.puremagic.com/issues/show_bug.cgi?id=5047 On Wed, Dec 8, 2010 at 1:32 PM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > On 12/8/10 5:41 AM, klickverbot wrote: > >> Currently, this is what happens when you try to install the DMD 2 de

Re: DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell« ?

2010-12-08 Thread Andrei Alexandrescu
On 12/8/10 5:41 AM, klickverbot wrote: Currently, this is what happens when you try to install the DMD 2 deb from digitalmars.com on a vanilla Ubuntu 10.10 box: sudo dpkg -i ~/Downloads/dmd_2.050-0_i386.deb Selecting previously deselected package dmd. (Reading database ... 127418 files and direc

Re: String compare performance

2010-12-08 Thread Brüno Mediocre
Bruno Medeiros Wrote: > On 29/11/2010 02:11, Michel Fortin wrote: > > On 2010-11-28 20:57:38 -0500, bearophobic said: > > > >> Stewart Gordon Wrote: > >> > >>> On 27/11/2010 23:04, Kagamin wrote: > bearophile Wrote: > > >> Also, is there a way to bit-compare given memory areas at mu

DMD2 .deb fails to install on Ubuntu 10.10 – just remove »shell«?

2010-12-08 Thread klickverbot
Currently, this is what happens when you try to install the DMD 2 deb from digitalmars.com on a vanilla Ubuntu 10.10 box: sudo dpkg -i ~/Downloads/dmd_2.050-0_i386.deb Selecting previously deselected package dmd. (Reading database ... 127418 files and directories currently installed.) Unpacking

Re: const(Object)ref is here!

2010-12-08 Thread Jason House
Andrei Alexandrescu Wrote: > >> What do Walter and Andrei think? > > > > That I'd like to know. > > I think actually offering a patch is a great initiative! Yeah, it's great initiative. Working prototypes really make it easy to fully evaluate an option and require almost no effort to formally a

Re: const(Object)ref is here!

2010-12-08 Thread Michel Fortin
On 2010-12-08 03:43:45 -0500, Walter Bright said: Michel Fortin wrote: After a recent discussion on this list about tail-const class references, it became rather clear that someone interested would have to implement the thing if we were to have it. So I did it. See enhancement request 5325 f

Re: Insight into the DMD back-end

2010-12-08 Thread Stephan
On 07.12.2010 12:49, Walter Bright wrote: Stephan wrote: On 07.12.2010 11:52, Walter Bright wrote: Stephan wrote: I often ran into this strange behaviour when using -O optimization without knowing where it came from and it is so disturbing when i think of people newly getting interested in D m

Re: ldc2: Current State?

2010-12-08 Thread Jordi
On 12/08/2010 06:13 AM, Iain Buclaw wrote: == Quote from Robert Clipsham (rob...@octarineparrot.com)'s article On 06/12/10 18:27, dsimcha wrote: Apparently LDC2 is being actively worked on (http://bitbucket.org/prokhin_alexey/ldc2/) and is up to date with the latest D2 reference compiler. I ha

Re: const(Object)ref is here!

2010-12-08 Thread Walter Bright
Michel Fortin wrote: After a recent discussion on this list about tail-const class references, it became rather clear that someone interested would have to implement the thing if we were to have it. So I did it. See enhancement request 5325 for an explanation and a patch.