Re: GC and void*

2012-01-28 Thread Nicolas Silva
Yes, right, thank you, why reinventing the wheel when the std does the things you want :) On Fri, Jan 27, 2012 at 1:05 PM, Daniel Murphy wrote: > Have you looked at std.variant?  It sounds like what you're looking for. > >

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread sclytrack
On 01/25/2012 01:12 AM, Timon Gehr wrote: On 01/24/2012 10:28 PM, %u wrote: Shouldn't this go into 'digitalmars.D' ? It should go straight to the bug tracker. Issue 7391 - floating wtf dmd 2.057 64

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread Timon Gehr
On 01/28/2012 04:56 PM, sclytrack wrote: On 01/25/2012 01:12 AM, Timon Gehr wrote: On 01/24/2012 10:28 PM, %u wrote: Shouldn't this go into 'digitalmars.D' ? It should go straight to the bug tracker. Issue 7391 - floating wtf dmd 2.057 64 Thanks!

Re: Clutter GObject bindings

2012-01-28 Thread Artur Skawina
On 01/28/12 03:02, Sparse Push wrote: > What is the best way to generate GObject bindings? > I ask this because I would like to use Clutter > (http://www.clutter-project.org/) in my D program and I don't think it has D > bindings already. >From the website, http://www.clutter-project.org/about :

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread Caligo
I've already reported, and it's been fixed in the latest: http://d.puremagic.com/issues/show_bug.cgi?id=7376 On Sat, Jan 28, 2012 at 9:56 AM, sclytrack wrote: > On 01/25/2012 01:12 AM, Timon Gehr wrote: >> >> On 01/24/2012 10:28 PM, %u wrote: >>> >>> Shouldn't this go into 'digitalmars.D' ? >>

Missing __ModuleInfoZ symbol when using dll

2012-01-28 Thread Benjamin Thaut
I tried creating a D DLL which I use in a D application and followed the steps in the DLL Howto on the homepage. Everything worked out fine so far but when I actually try to use a module thats defined within the dll and import it I get a linker error: Error 42: Symbol Undefined _D6thBase6form

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread sclytrack
Now I've waisted Walter's precious time. I feel so sad now :-( On 01/28/2012 07:49 PM, Caligo wrote: I've already reported, and it's been fixed in the latest: http://d.puremagic.com/issues/show_bug.cgi?id=7376 On Sat, Jan 28, 2012 at 9:56 AM, sclytrack wrote: On 01/25/2012 01:12 AM, Tim

delete and MmFile

2012-01-28 Thread NewName
Hello everybody. So I heard that `delete' is being deprecated? If that's true, what can I do to close an MmFile? Or is there another way to create an MmFile object, other than with `new', so that it gets destroyed when out of scope? My problem is, I need to reopen the same file outside an if() bl

Re: delete and MmFile

2012-01-28 Thread Daniel Murphy
"NewName" wrote in message news:jg2du7$2nun$1...@digitalmars.com... > Hello everybody. > So I heard that `delete' is being deprecated? > When delete is gone, you will still be able to destroy class instances with 'clear' from phobos. Like delete, it runs the destructor on the class, it just d

Re: delete and MmFile

2012-01-28 Thread NewName
Thanks Daniel. So clear() is a function thing, so my delete mmf; will look like clear(mmf); am I right?

Re: delete and MmFile

2012-01-28 Thread Daniel Murphy
Yes. clear is in object.d so it will always be available. "NewName" wrote in message news:jg2fdj$2rmk$1...@digitalmars.com... > Thanks Daniel. > So clear() is a function thing, so my delete mmf; will look like > clear(mmf); am I > right? >

Re: Clutter GObject bindings

2012-01-28 Thread Sparse Pop
== Quote from Artur Skawina (art.08...@gmail.com)'s article > On 01/28/12 03:02, Sparse Push wrote: > > What is the best way to generate GObject bindings? > > I ask this because I would like to use Clutter > > (http://www.clutter-project.org/) in my D program and I don't think it has D > > bindings

Char & the Extended ascii set

2012-01-28 Thread Era Scarecrow
It there any support for the extended ascii characters? (128-255). I understand unicode is important, however working with some data and programs that don't support those, I am getting a problem that the program causes an exception because it isn't valid utf-8. Do I have to handle it all as by

Re: Char & the Extended ascii set

2012-01-28 Thread Jonathan M Davis
On Saturday, January 28, 2012 20:54:30 Era Scarecrow wrote: > It there any support for the extended ascii characters? (128-255). I > understand unicode is important, however working with some data and > programs that don't support those, I am getting a problem that the program > causes an exceptio

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread Caligo
On Sat, Jan 28, 2012 at 2:04 PM, sclytrack wrote: > > > Now I've waisted Walter's precious time. > I feel so sad now :-( > I should have made a post about the fact that I had already bug reported it, but I forgot. Sorry.

Pure Contract bug? (unnecessarily strict)

2012-01-28 Thread Era Scarecrow
Maybe someone's brought this up, but i seem to have the compiler complaining to me that my function isn't 'pure' by calling a non-pure function, specifically to!string(). However the unpure functions are only accessed in the contracts, and only if it failed seriously. Is this already planned

Re: Char & the Extended ascii set

2012-01-28 Thread Era Scarecrow
> char is UTF-8 by definition, and D code is free to assume > that that's the case. > A lot of the string processing code in Phobos will throw if > you give it ill- > formed unicode. > > Now, you can put whatever you want in a char, but don't > expect other D code to > handle it correctly. > >

Re: Pure Contract bug? (unnecessarily strict)

2012-01-28 Thread Daniel Murphy
The way to avoid purity checking is to put code in a debug {} statement. I'm not aware of any plans to disable purity checking for contracts.

Re: floating-WTF - Compiler-BUG with 64bit

2012-01-28 Thread sclytrack
Prior to filing the bug I tried to compile dmd from source. I have now succeeded. The only problem I had was a missing symbolic link libstdc++.so and this in Ubuntu 11.10. So I just created it. /usr/lib32/libstdc++.so -> /usr/lib/i386-linux-gnu/libstdc++.so.6 Then "make -f posix" and in the dmd