Re: stream readf keeps producing bus error on DMD 2.046 on OS X 10.5.8

2010-07-08 Thread Ali Çehreli
RedZone wrote: Hi, I've been trying to use readf to read some basic text from a file... I found, though, that readf kept producing inexplicable bus errors. I simplified my code and tried to use readf on just a plain character array. No change. Here's the code: import std.stdio; //import std.f

Re: Any special linking for _NSGetExecutablePath on OSX?

2010-07-08 Thread Justin Spahr-Summers
On Thu, 8 Jul 2010 19:24:52 -0400, Nick Sabalausky wrote: > > I need to use OSX's _NSGetExecutablePath, and I've declared it: > > extern(C) int _NSGetExecutablePath(char* buf, uint* bufsize); > > I don't have access to a OSX box to test it on ATM, so I need to know: Is > there anything I need

Any special linking for _NSGetExecutablePath on OSX?

2010-07-08 Thread Nick Sabalausky
I need to use OSX's _NSGetExecutablePath, and I've declared it: extern(C) int _NSGetExecutablePath(char* buf, uint* bufsize); I don't have access to a OSX box to test it on ATM, so I need to know: Is there anything I need to tell the linker (like, anything special I need to explicitly link in)

stream readf keeps producing bus error on DMD 2.046 on OS X 10.5.8

2010-07-08 Thread RedZone
Hi, I've been trying to use readf to read some basic text from a file... I found, though, that readf kept producing inexplicable bus errors. I simplified my code and tried to use readf on just a plain character array. No change. Here's the code: import std.stdio; //import std.file; import std.s

Re: Mixing operations with signed and unsigned types

2010-07-08 Thread Jérôme M. Berger
Stewart Gordon wrote: > Ellery Newcomer wrote: >> On 07/06/2010 07:05 PM, Stewart Gordon wrote: > >>> Just using uint, of course! >> >> For enforcing a non-negative constraint, that is brain damaged. >> Semantically, the two are very different. > > So effectively, the edit wars would be between p

Re: Mixing operations with signed and unsigned types

2010-07-08 Thread Stewart Gordon
Ellery Newcomer wrote: On 07/06/2010 07:05 PM, Stewart Gordon wrote: Just using uint, of course! For enforcing a non-negative constraint, that is brain damaged. Semantically, the two are very different. So effectively, the edit wars would be between people thinking at cross purposes. I

Re: std.pattern.. templated publisher subscriber pattern, adding events to collections

2010-07-08 Thread BLS
@ Dmitry Thanks for all the feedback Dmitry. Seems that we have similar projects in mind :) (maybe we can talk about the GUI project.. mine is similar to win32++ at http://sourceforge.net/projects/win32-framework/) Howeve