Re: TLS definition in curses.o section .tbss mismatches non-TLS reference in /usr/lib/libncurses.a(lib_initscr.o)

2009-12-11 Thread Gareth Charnock
Bernard Helyer wrote: On 11/12/09 10:48, Gareth Charnock wrote: Is there any way to tell dmd to just share them between threads? __gshared type whatever; Thanks. And now I see there was an article about that on website all along. I guess my eyes must have just scanned over it. A good night'

Re: [D2] const vs structs

2009-12-11 Thread Richard Webb
Opened as 3606 and 3607. Thanks, Richard Webb

Overloading of static and instance members

2009-12-11 Thread Michal Minich
Consider this example: struct A { static void foo () {} void foo () {} } void main () { A a; A.foo(); // error here a.foo(); // and same here } Error: function main.A.foo called with argument types: (()) matches both: main.A.foo() and: main.A.foo() Which is

Re: Getting the text of an exception

2009-12-11 Thread Michal Minich
Hello Phil, How can I get the unadorned text of an exception? e.msg

Getting the text of an exception

2009-12-11 Thread Phil Deets
How can I get the unadorned text of an exception? When I run: import std.stdio; int main() { try { throw new Exception("text"); } catch (Exception e) { writeln(e.toString()); } return 0; } I get the output: object.Exceptio

Re: [D2] const vs structs

2009-12-11 Thread Steven Schveighoffer
On Fri, 11 Dec 2009 07:13:35 -0500, Steven Schveighoffer wrote: I think it should be a bug Clarifying, I meant it is a bug in the compiler *not* in Juno :) -Steve

Re: [D2] const vs structs

2009-12-11 Thread Steven Schveighoffer
On Thu, 10 Dec 2009 19:23:43 -0500, Richard Webb wrote: I just tried to build the Juno library with DMD 2.037, and got a bunch or errors like: juno\com\core.d(295): Error: function juno.com.core.GUID.opEquals type signature should be const bool(ref const(GUID)) not bool(GUID other) Whi