Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Max Samukha
On 09/08/2011 08:21 AM, Walter Bright wrote: By far, the most number of bug fixes ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.070.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.055.zip This test case struct S {

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Ali Çehreli
On Sun, 11 Sep 2011 10:57:12 -0700, Walter Bright wrote: On 9/11/2011 9:08 AM, Max Samukha wrote: This test case struct S { @disable this(); this(int x) { } } class C { S s; this() { s = S(42); } } void main() { auto c = new C; } yields Error: default construction is

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Walter Bright
On 9/11/2011 2:18 PM, Jonathan M Davis wrote: isn't legal when S is a struct whose default constructor has been disabled. Actually, what worries me is what happens when you try and use S.init (I haven't tried it, so I don't know what happens). S.init has effectively been made non-existent by

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Ali Çehreli
On Sun, 11 Sep 2011 15:08:20 -0700, Walter Bright wrote: On 9/11/2011 2:18 PM, Jonathan M Davis wrote: isn't legal when S is a struct whose default constructor has been disabled. Actually, what worries me is what happens when you try and use S.init (I haven't tried it, so I don't know what

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Walter Bright
On 9/11/2011 4:53 PM, Ali Çehreli wrote: The problem is, the disabled default constructor of a *member* is making a wrapper class's constructor to be disabled as well: Right. It's infectious. This is deliberate. I think this is at least limiting and very likely a bug. It's deliberate. It's

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread dsimcha
On 9/11/2011 9:07 PM, Walter Bright wrote: On 9/11/2011 4:53 PM, Ali Çehreli wrote: The problem is, the disabled default constructor of a *member* is making a wrapper class's constructor to be disabled as well: Right. It's infectious. This is deliberate. I think this is at least limiting

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Ali Çehreli
On Sun, 11 Sep 2011 18:07:41 -0700, Walter Bright wrote: On 9/11/2011 4:53 PM, Ali Çehreli wrote: The problem is, the disabled default constructor of a *member* is making a wrapper class's constructor to be disabled as well: Right. It's infectious. This is deliberate. I think this is

Re: dmd 1.070 and 2.055 release

2011-09-11 Thread Ali Çehreli
On Mon, 12 Sep 2011 04:11:42 +, Ali Çehreli wrote: I can see two workarounds, none of which I believe are undesirable: Really? I meant they are NOT desirable. :) Ali

Re: Auto tools and D

2011-09-11 Thread Nick Sabalausky
Steve Teale steve.te...@britseyeview.com wrote in message news:j4hh0n$73t$1...@digitalmars.com... Has anyone succeeded in getting a piece of Linux software written with DMD to the point where you could just do ./configure make sudo make install If so, I could use some help. It's

Re: D async I/O library by Matt Jones

2011-09-11 Thread Masahiro Nakagawa
On Sun, 11 Sep 2011 09:37:28 +0900, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Sat, 10 Sep 2011 20:23:44 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Just found this: https://launchpad.net/diohelper D1/Tango. Surprising, D2's closures would be a boon

Re: Pull 375 and related enhancements

2011-09-11 Thread Don
On 09.09.2011 21:53, Walter Bright wrote: On 9/9/2011 11:48 AM, bearophile wrote: It seems Pull 375 also turns this program in a compile-time error: int[3] arr = [1, 2]; void main() {} Walter told me that this code used to work as designed, this means it's not a bug. Despite not being a bug,

Re: Pull 375 and related enhancements

2011-09-11 Thread bearophile
Don: Do you have an example? In bug 3849 there the only example I've found (it's not my code): immutable ubyte _ctype[256] = [ _CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL, _CTL,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL,_CTL,

clear()

2011-09-11 Thread Marco Leise
Can someone clarify things for me? So I use .clear() as usual to clear my arrays and associative arrays. But a post by Jonathan M Davis in D.learn made me realize that same name is used to call a destructor on an object and now I wonder if clear() was ever supposed to be called on

Re: Looking forward to the resurrection ddmd

2011-09-11 Thread Jacob Carlborg
On 2011-09-11 06:08, Daniel Murphy wrote: Nick Sabalauskya@a.a wrote in message news:j4gflo$1c59$1...@digitalmars.com... I'm wondering if maybe the problem is that it needs a different approach. I suspect a big part of the reason it's stagnated is because it's difficult to update to new

Re: Auto tools and D

2011-09-11 Thread Russel Winder
On Sun, 2011-09-11 at 03:46 -0400, Nick Sabalausky wrote: [ . . . ] Ok, granted, that sounds rather tongue-in-cheek, but I'm fairily serious about it: Is there some reason you need to actually put it all through autotools? I'm no expert, but autotools strikes me as just a collection of

Re: Pull 375 and related enhancements

2011-09-11 Thread zeljkog
On 10.09.2011 11:30, bearophile wrote: Note: for me this syntax with $ is more commonly useful compared to the ... syntax. I think that the proposed use of the operator $ a consistent and intuitive in the context. In this case ellipsis is unnecessary, int [N] = [1]; automatically gets a

Re: Auto tools and D

2011-09-11 Thread Steve Teale
Russel, Thanks for the tips - I shall try SCons. Steve

Re: Pull 375 and related enhancements

2011-09-11 Thread bearophile
zeljkog: I think that the proposed use of the operator $ a consistent and intuitive in the context. In this case ellipsis is unnecessary, int [N] = [1]; automatically gets a second intuitive meaning, consistent with the struct literal. I don't understand what's the second intuitive

cleaning up dsource

2011-09-11 Thread maarten van damme
As most of you guys know, a lot of projects on dsource have been discontinued or even never started. wouldn't it be best for everyone to add an archive section to the projects page and move there all discontinued projects? it may not sound such a big issue but it was one of the things that made me

Re: Looking forward to the resurrection ddmd

2011-09-11 Thread Daniel Murphy
Jacob Carlborg d...@me.com wrote in message news:j4i33b$1bc2$1...@digitalmars.com... I find this strange: D can call C++ free functions and virtual member functions but it cannot call non-virtual or static member functions. Especially not be able to call static member functions are

C-ABI bug returning string/struct on linux 32 bit when using wxd ?

2011-09-11 Thread Gerrit Wichert
Hello, shortly i tried to use wxd for building a native 64 bit application on my OpenSuse 11.4 - 64 bit box. Sadly i ran into issue 5570 wich stopped me from building a woking wxd lib. So i stepped back to build the app for 32 bit. This worked up to the point where i tried to use a

Re: Auto tools and D

2011-09-11 Thread Russel Winder
Steve, On Sun, 2011-09-11 at 12:37 +, Steve Teale wrote: Russel, Thanks for the tips - I shall try SCons. Steve SCons 2.1.0 just came out, though I have to admit I use Mercurial tip. The DMD tool that comes as standard with SCons is not really sufficient to the task. I have a

Re: Formal Review of region allocator begins

2011-09-11 Thread Martin Nowak
RegionAllocator should have a dup function (better name required), which will call newRegionAllocator on it's stack. This is needed to create a nested scope without knowing the used stack. martin

Re: Formal Review of region allocator begins

2011-09-11 Thread dsimcha
On 9/11/2011 12:39 PM, Martin Nowak wrote: RegionAllocator should have a dup function (better name required), which will call newRegionAllocator on it's stack. This is needed to create a nested scope without knowing the used stack. martin Good idea. This does suggest a little refactoring,

Allocators/region allocator proposal overhaul

2011-09-11 Thread dsimcha
When I initially created my allocators proposal, I figured wrongly that the community would be most interested in seeing a few examples of allocators and that a more formal specification of the allocator interface wasn't terribly important yet. I was wrong, so I got off my butt and wrote a

Re: Formal Review of region allocator begins

2011-09-11 Thread dsimcha
On 9/11/2011 12:53 PM, dsimcha wrote: On 9/11/2011 12:39 PM, Martin Nowak wrote: RegionAllocator should have a dup function (better name required), which will call newRegionAllocator on it's stack. This is needed to create a nested scope without knowing the used stack. martin Good idea. This

Re: Auto tools and D

2011-09-11 Thread Chris Molozian
Perhaps give Jam (http://www.freetype.org/jam/index.html) a try, it's got builds for almost every platform and works well for me. I use this Jamfile for most D projects: # Requires the Jam (ftjam) build tool (http://www.freetype.org/jam/) ALL_LOCATE_TARGET = build ; SubDir TOP ; # auxiliary

Re: Auto tools and D

2011-09-11 Thread Steve Teale
I was able to get some distance down the road with: env = Environment() def CheckPKGConfig(context, version): context.Message( 'Checking for pkg-config... ' ) ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0] context.Result( ret ) return ret

Re: Allocators/region allocator proposal overhaul

2011-09-11 Thread Masahiro Nakagawa
On Mon, 12 Sep 2011 01:51:02 +0900, dsimcha dsim...@yahoo.com wrote: 8. The high-level, templated allocator functions now have a default implementation in terms of lower-level allocator functionality, provided by the TypedAllocatorMixin mixin in std.allocators.allocator. The idea is that

Re: cleaning up dsource

2011-09-11 Thread Nick Sabalausky
maarten van damme maartenvd1...@gmail.com wrote in message news:mailman.2808.1315747040.14074.digitalmar...@puremagic.com... As most of you guys know, a lot of projects on dsource have been discontinued or even never started. wouldn't it be best for everyone to add an archive section to the

Re: Allocators/region allocator proposal overhaul

2011-09-11 Thread dsimcha
== Quote from Masahiro Nakagawa (repeate...@gmail.com)'s article On Mon, 12 Sep 2011 01:51:02 +0900, dsimcha dsim...@yahoo.com wrote: 8. The high-level, templated allocator functions now have a default implementation in terms of lower-level allocator functionality, provided by the

Re: Allocators/region allocator proposal overhaul

2011-09-11 Thread dsimcha
== Quote from dsimcha (dsim...@yahoo.com)'s article 8. The high-level, templated allocator functions now have a default implementation in terms of lower-level allocator functionality, provided by the TypedAllocatorMixin mixin in std.allocators.allocator. The idea is that an allocator may

Re: Allocators/region allocator proposal overhaul

2011-09-11 Thread dsimcha
== Quote from dsimcha (dsim...@yahoo.com)'s article == Quote from Masahiro Nakagawa (repeate...@gmail.com)'s article On Mon, 12 Sep 2011 01:51:02 +0900, dsimcha dsim...@yahoo.com wrote: 8. The high-level, templated allocator functions now have a default implementation in terms of

Re: Looking forward to the resurrection ddmd

2011-09-11 Thread Jacob Carlborg
On 2011-09-11 17:07, Daniel Murphy wrote: Jacob Carlborgd...@me.com wrote in message news:j4i33b$1bc2$1...@digitalmars.com... I find this strange: D can call C++ free functions and virtual member functions but it cannot call non-virtual or static member functions. Especially not be able to

Re: Allocators/region allocator proposal overhaul

2011-09-11 Thread Masahiro Nakagawa
On Mon, 12 Sep 2011 04:37:17 +0900, dsimcha dsim...@yahoo.com wrote: == Quote from dsimcha (dsim...@yahoo.com)'s article == Quote from Masahiro Nakagawa (repeate...@gmail.com)'s article On Mon, 12 Sep 2011 01:51:02 +0900, dsimcha dsim...@yahoo.com wrote: 8. The high-level, templated

Re: Line lengths discussed in eclipse forum and on reddit

2011-09-11 Thread Don
On 09.09.2011 17:49, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/k7pwu/eclipse_default_line_length_of_80_chars_outdated/ Andrei Interesting to me was the quote from Linus, saying that indentation depth should never exceed 3. If you accept that, then 80 characters

Re: Line lengths discussed in eclipse forum and on reddit

2011-09-11 Thread Nick Sabalausky
Don nos...@nospam.com wrote in message news:j4j5o6$m4b$1...@digitalmars.com... On 09.09.2011 17:49, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/k7pwu/eclipse_default_line_length_of_80_chars_outdated/ Andrei Interesting to me was the quote from Linus, saying that

Re: Line lengths discussed in eclipse forum and on reddit

2011-09-11 Thread Jonathan M Davis
On Sunday, September 11, 2011 22:29:42 Don wrote: On 09.09.2011 17:49, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/k7pwu/eclipse_default_line_ length_of_80_chars_outdated/ Andrei Interesting to me was the quote from Linus, saying that indentation depth

Re: Formal Review of region allocator begins

2011-09-11 Thread Martin Nowak
Looks good. Maybe nesting is a good name for the whole concept. This would require further introductory explanation at the module header. Possibly this can be partly merge with the explanation of stack pointer bumping. /* * ... * Multiple instances of RegionAllocator may use the same stack

Re: Formal Review of region allocator begins

2011-09-11 Thread dsimcha
I like it. Thanks for the idea. On 9/11/2011 7:28 PM, Martin Nowak wrote: Looks good. Maybe nesting is a good name for the whole concept. This would require further introductory explanation at the module header. Possibly this can be partly merge with the explanation of stack pointer bumping.

Re: Looking forward to the resurrection ddmd

2011-09-11 Thread Daniel Murphy
Jacob Carlborg d...@me.com wrote in message news:j4j4al$il3$1...@digitalmars.com... Virtual functions needs to be mangled as well. The only thing that, at least I know about, differs from a free function and a static member function is the mangling. -- /Jacob Carlborg Virtual functions

Re: D in the TIOBE top

2011-09-11 Thread Caligo
I don't understand why some would down vote such a news. a lot of haters out there I suppose.

Re: Line lengths discussed in eclipse forum and on reddit

2011-09-11 Thread Adam D. Ruppe
Nick Sabalausky wrote: With Linus being the head Linux guy, I assume he insists on using 8-char tabs. If so, it's no fucking wonder he's unable to handle any more than a minimal number of indents. 8 char tabs are a gift from God. 4 char indents barely even register to my eyes. Of course, the

Re: Line lengths discussed in eclipse forum and on reddit

2011-09-11 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:j4jvls$2gp1$1...@digitalmars.com... Nick Sabalausky wrote: With Linus being the head Linux guy, I assume he insists on using 8-char tabs. If so, it's no fucking wonder he's unable to handle any more than a minimal number of

defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
What is the proper way to define the in operation in D2? I can't figure it out from http://www.digitalmars.com/d/2.0/operatoroverloading.html#Binary , and the source code doesn't seem to have any examples. My current (untested) find method is: boolfind (Key k, Node!(Key, Data) t) {

Re: defining in What is the proper way in D2?

2011-09-11 Thread David Nadlinger
On 9/11/11 10:02 PM, Charles Hixson wrote: What is the proper way to define the in operation in D2? For containers, you typically want to use opBinaryRight: --- bool opBinaryRight(string op : in)(ElemType e) const { return …; } --- David

Re: defining in What is the proper way in D2?

2011-09-11 Thread Vladimir Panteleev
On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I can't figure it out from http://www.digitalmars.com/d/2.0/operatoroverloading.html#Binary // I assume your data structure looks like this class Node(Key, Data) { Key k; Node!(Key, Data)

Re: defining in What is the proper way in D2?

2011-09-11 Thread David Nadlinger
On 9/11/11 10:25 PM, Vladimir Panteleev wrote: void opBinary!(in)(Key k) Shouldn't that be »void opBinary(string op : in)(Key k)«? Also, you probably want to use opBinaryRight, because opBinary hooks »if (container in key)«. David

Re: defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I can't figure it out from http://www.digitalmars.com/d/2.0/operatoroverloading.html#Binary // I assume your data structure looks like this class Node(Key,

Re: defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
On 09/11/2011 01:33 PM, David Nadlinger wrote: On 9/11/11 10:25 PM, Vladimir Panteleev wrote: void opBinary!(in)(Key k) Shouldn't that be »void opBinary(string op : in)(Key k)«? Also, you probably want to use opBinaryRight, because opBinary hooks »if (container in key)«. David And thanks

Re: defining in What is the proper way in D2?

2011-09-11 Thread Jonathan M Davis
On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I can't figure it out from

Re: defining in What is the proper way in D2?

2011-09-11 Thread David Nadlinger
On 9/11/11 11:12 PM, Jonathan M Davis wrote: The in operator normally returns a pointer to the value that you're trying to find (and returns null if it's not there). Making it return bool may work, but it's going to be a problem for generic code. That's like making opBinary!* return a type

Re: defining in What is the proper way in D2?

2011-09-11 Thread Timon Gehr
On 09/11/2011 11:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I can't figure it out from

Re: defining in What is the proper way in D2?

2011-09-11 Thread Jonathan M Davis
On Monday, September 12, 2011 00:11:11 Timon Gehr wrote: On 09/11/2011 11:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson

copy and paste in program

2011-09-11 Thread Joel Christensen
Hi, I've got a text program I'm working on. It has game like print. But I want to be able to copy to the clip board and paste from it in my program etc. I'm using Windows 7. I have used a bit of Ubuntu in the past. - Joelcnz

Re: defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
On 09/11/2011 02:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I can't figure it out from

Re: defining in What is the proper way in D2?

2011-09-11 Thread Jonathan M Davis
On Sunday, September 11, 2011 15:28:38 Charles Hixson wrote: On 09/11/2011 02:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson

Re: defining in What is the proper way in D2?

2011-09-11 Thread Timon Gehr
On 09/12/2011 12:21 AM, Jonathan M Davis wrote: On Monday, September 12, 2011 00:11:11 Timon Gehr wrote: On 09/11/2011 11:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37

Re: defining in What is the proper way in D2?

2011-09-11 Thread Timon Gehr
On 09/12/2011 12:28 AM, Charles Hixson wrote: On 09/11/2011 02:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles Hixson charleshi...@earthlink.net wrote: I

Re: defining in What is the proper way in D2?

2011-09-11 Thread Jonathan M Davis
On Monday, September 12, 2011 01:04:39 Timon Gehr wrote: On 09/12/2011 12:21 AM, Jonathan M Davis wrote: On Monday, September 12, 2011 00:11:11 Timon Gehr wrote: On 09/11/2011 11:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011

Re: defining in What is the proper way in D2?

2011-09-11 Thread bearophile
Timon Gehr: AAs are built-in. The optimization you describe is quite easily carried out by the compiler. And I am quite sure that in the long run, it will bite us. With the LDC compiler if you perform an AA lookup, and after one or few lines you do it again, (because you are using an if

Re: defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
On 09/11/2011 04:07 PM, Timon Gehr wrote: On 09/12/2011 12:28 AM, Charles Hixson wrote: On 09/11/2011 02:12 PM, Jonathan M Davis wrote: On Sunday, September 11, 2011 14:00:55 Charles Hixson wrote: On 09/11/2011 01:25 PM, Vladimir Panteleev wrote: On Sun, 11 Sep 2011 23:02:37 +0300, Charles

Re: defining in What is the proper way in D2?

2011-09-11 Thread Timon Gehr
On 09/12/2011 02:53 AM, Charles Hixson wrote: On 09/11/2011 04:07 PM, Timon Gehr wrote: How do you mean, instantiate it? container.binaryOp(in)!(something I haven't figured out yet. Template syntax doesn't make any sense to me yet. I'm just copying examples and adapting them with a cut and

Re: copy and paste in program

2011-09-11 Thread Joel Christensen
Thanks for the reply Jimmy. I was thinking more like SDL (has SDL_GetClipboardText, SDL_SetClipboardText, http://wiki.libsdl.org/moin.cgi/CategoryClipboard). I'm not sure I would be able to get Windows CE Clipboard stuff working for me. - Joelcnz On 12-Sep-11 1:23 PM, Jimmy Cao wrote:

inout and methods which return this

2011-09-11 Thread Vladimir Panteleev
What's the simplest const-correct way to write a method which returns this? I tried the following to no avail: class Test { inout(Test) f() inout { return this; } } Result: test.d(3): Error: inout on return means inout must be on a parameter as well

Re: copy and paste in program

2011-09-11 Thread Joel Christensen
So how would I got about doing it in D? On 12-Sep-11 1:52 PM, Vladimir Panteleev wrote: On Mon, 12 Sep 2011 04:39:52 +0300, Joel Christensen joel...@gmail.com wrote: I'm not sure I would be able to get Windows CE Clipboard stuff working for me. Search engines often return Windows CE results

Re: copy and paste in program

2011-09-11 Thread Jimmy Cao
Here's an example I've quickly put together for you: import std.stdio; import core.stdc.string; extern(Windows) { void* GetClipboardData(uint); bool OpenClipboard(void*); } void main() { if (OpenClipboard(null)) { auto cstr = cast(char*)GetClipboardData(1); if (cstr)

Re: copy and paste in program

2011-09-11 Thread Joel Christensen
Thanks Jimmy. Your example worked. Or though I haven't managed to get the other way to work. [code] import std.stdio; //import core.stdc.string; import std.c.string; import std.string; import std.conv; extern(Windows) { bool OpenClipboard(void*); void* GetClipboardData(uint); void*

Re: defining in What is the proper way in D2?

2011-09-11 Thread Charles Hixson
On 09/11/2011 06:02 PM, Timon Gehr wrote: On 09/12/2011 02:53 AM, Charles Hixson wrote: On 09/11/2011 04:07 PM, Timon Gehr wrote: How do you mean, instantiate it? container.binaryOp(in)!(something I haven't figured out yet. Template syntax doesn't make any sense to me yet. I'm just copying

[Issue 6643] Very slow compilation for large switch() using -O and -inline

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6643 --- Comment #3 from bearophile_h...@eml.cc 2011-09-11 04:05:24 PDT --- The head of the trace log, a bit reformatted for clarity: Num TreeFunc Calls TimeTime 25 687874498 336057504 void cdecl

[Issue 3849] [missing error] Array literal length doesn't match

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #13 from bearophile_h...@eml.cc 2011-09-11 04:11:11 PDT --- (In reply to comment #12) If no item is missing the compiler probably has to generate an error again: int[2] arr = [1, 2, ...]; // compile-time error I'm not

[Issue 6459] Inline assembler does not work well for 64 bit registers R8..R15

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6459 --- Comment #3 from Graham grahamc00...@yahoo.co.uk 2011-09-11 04:28:05 PDT --- The above still present in v2.055 I also notice if you do: and RAX,0x the compiler accepts it but generates: and RAX,0x

[Issue 6643] Very slow compilation for large switch() using -O and -inline

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6643 --- Comment #4 from bearophile_h...@eml.cc 2011-09-11 05:32:04 PDT --- Maybe it's possible to speed up the vec_index function (in srt\tk\vec.c) using smarter bithacks. -- Configure issuemail:

[Issue 6643] Very slow compilation for large switch() using -O and -inline

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6643 --- Comment #5 from bearophile_h...@eml.cc 2011-09-11 06:10:47 PDT --- With a test (removing @property, replacing immutable with const, and removing the imports) the LDC1 compiler shows normal compilation speeds with every combination of

[Issue 3849] [missing error] Array literal length doesn't match

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #14 from Stewart Gordon s...@iname.com 2011-09-11 07:50:51 PDT --- (In reply to comment #13) float[6] arr = [1., 2., 42]; This is too much ugly, You don't have to use it then. You could use float[6] arr = [1., 2., 42.

[Issue 6622] rdmd --makedepend lists dmd.conf and dmd

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6622 --- Comment #7 from Vladimir Panteleev thecybersha...@gmail.com 2011-09-11 08:03:09 PDT --- (In reply to comment #6) Why? Because the list of .d dependencies is *inherently* dependent on the *specific* compiler, anyway. Question: if the

[Issue 6643] Very slow compilation for large switch() using -O and -inline

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6643 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||performance

[Issue 3849] Compiler should catch incomplete initialisation of an array

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 Stewart Gordon s...@iname.com changed: What|Removed |Added Keywords|accepts-invalid |spec

[Issue 6459] Inline assembler does not work well for 64 bit registers R8..R15

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6459 --- Comment #4 from Graham grahamc00...@yahoo.co.uk 2011-09-11 09:48:23 PDT --- Another negative immediate value issue: movEAX,-2;/* line 1 */ movEAX,0xFFFE;/* line 2 */ mov

[Issue 6644] New: std.stdio write/writef(ln) are not @trusted

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6644 Summary: std.stdio write/writef(ln) are not @trusted Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 6645] New: moveAll is not @trusted

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6645 Summary: moveAll is not @trusted Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos

[Issue 6646] New: [SafeD] array.reserve is not @safe/trusted

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6646 Summary: [SafeD] array.reserve is not @safe/trusted Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 6647] New: [SafeD] unhelpful error message for @safety mismatch of generated destructor

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6647 Summary: [SafeD] unhelpful error message for @safety mismatch of generated destructor Product: D Version: D2 Platform: All OS/Version: All Status: NEW

[Issue 6648] New: fix invariant

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6648 Summary: fix invariant Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo:

[Issue 6622] rdmd --makedepend lists dmd.conf and dmd

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6622 --- Comment #8 from Nick Sabalausky cbkbbej...@mailinator.com 2011-09-11 15:18:01 PDT --- Question: if the output of rdmd --makedepend is only usable on the current system, is there still a valid use for it? Why not just use rdmd? Using rdmd

[Issue 6649] New: core.sys.posix.sys.ioctl

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6649 Summary: core.sys.posix.sys.ioctl Product: D Version: D2 Platform: All OS/Version: Other Status: NEW Severity: enhancement Priority: P2 Component:

[Issue 6648] Only call invariant once for a tree of public functions

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6648 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com

[Issue 6648] Only call invariant once for a tree of public functions

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6648 timon.g...@gmx.ch changed: What|Removed |Added Status|NEW |RESOLVED Resolution|