Re: Debug on OSX?

2011-09-07 Thread Jacob Carlborg
On 2011-09-06 18:57, Robert Clipsham wrote: On 06/09/2011 07:25, Jacob Carlborg wrote: On 2011-09-06 05:22, Dan Olson wrote: I tried dmd -gc like on linux but gdb on OSX doesn't seem happy. Is there a way to get the debuger to work with dmd on OSX? Thanks, Dan There are things that won't

Re: Out of Source Unittests

2011-09-07 Thread Jacob Carlborg
On 2011-09-06 19:15, Tobias Pankrath wrote: Yes, just move those unit tests into another module. However, it won't have access to private members. Which is IMO a showstopper. How do you handle your unit tests? I am now stuffing everything related to unit tests at the bottom of the module

Re: D on other platforms than Win,Lin,Mac?

2011-09-07 Thread Johannes Pfau
Trass3r wrote: At least for gdc only hello-world like code works. Real code hits this issue: https://bitbucket.org/goshawk/gdc/issue/215/alignment-of-struct-members-wrong-on-arm Did you ever try with LDC? Not yet, but I'll try it as soon as possible. -- Johannes Pfau

Re: D on other platforms than Win,Lin,Mac?

2011-09-07 Thread Johannes Pfau
Andrew Wiley wrote: On Tue, Sep 6, 2011 at 2:25 PM, Johannes Pfau s...@example.com wrote: Trass3r wrote: I've heard that our company is considering the T20 from Toradex.com for a new project with remote hardware. The platform runs on Nvidia Tegra and Linux. Since I have been very

Re: D on other platforms than Win,Lin,Mac?

2011-09-07 Thread Andrew Wiley
On Wed, Sep 7, 2011 at 2:46 AM, Johannes Pfau s...@example.com wrote: Andrew Wiley wrote: On Tue, Sep 6, 2011 at 2:25 PM, Johannes Pfau s...@example.com wrote: Trass3r wrote: I've heard that our company is considering the T20 from Toradex.com for a new project with remote hardware.

Re: What does ref means

2011-09-07 Thread Simen Kjaeraas
On Wed, 07 Sep 2011 20:50:04 +0200, Johannes Totz johan...@jo-t.de wrote: On 06/09/2011 12:00, bearophile wrote: malio: Okay, thanks bearophile. But I currently doesn't exactly understand what's the difference between ref and const ref/immutable ref. If ref is syntactic sugar for pointers

Re: What does ref means

2011-09-07 Thread Timon Gehr
On 09/07/2011 08:50 PM, Johannes Totz wrote: On 06/09/2011 12:00, bearophile wrote: malio: Okay, thanks bearophile. But I currently doesn't exactly understand what's the difference between ref and const ref/immutable ref. If ref is syntactic sugar for pointers only (like your first example),

Associative array .length undefined symbol

2011-09-07 Thread Cal
Hi, I have a strange error with associative arrays. I have the following: module mod_base; abstract class Base { int[string] m_arr; } module mod_derived; class Derived : Base { void foo() { m_arr[hello] = 5; /// This works fine auto len = m_arr.length; /// Symbol

Re: Associative array .length undefined symbol

2011-09-07 Thread Cal
Actually this looks like Issue 5950, missed it the first time. Maybe thats why it happens. Cal