Re: Newbie GDC issues

2013-09-06 Thread eles
On Friday, 6 September 2013 at 10:35:15 UTC, Iain Buclaw wrote: On 6 September 2013 10:15, eles wrote: On Friday, 6 September 2013 at 07:55:39 UTC, Iain Buclaw wrote: On 6 September 2013 08:32, eles wrote: On Thursday, 5 September 2013 at 23:49:18 UTC, Ramon wrote: I'll have to give it a t

Re: Newbie GDC issues

2013-09-06 Thread Iain Buclaw
On 6 September 2013 10:15, eles wrote: > On Friday, 6 September 2013 at 07:55:39 UTC, Iain Buclaw wrote: >> >> On 6 September 2013 08:32, eles wrote: >>> >>> On Thursday, 5 September 2013 at 23:49:18 UTC, Ramon wrote: >> >> In today's gdc implementation (back then I believe that was for D1) - >>

Re: Newbie GDC issues

2013-09-06 Thread eles
On Friday, 6 September 2013 at 07:55:39 UTC, Iain Buclaw wrote: On 6 September 2013 08:32, eles wrote: On Thursday, 5 September 2013 at 23:49:18 UTC, Ramon wrote: In today's gdc implementation (back then I believe that was for D1) - you'd have to use -fno-emit-moduleinfo (maybe I should rever

Re: Newbie GDC issues

2013-09-06 Thread Iain Buclaw
On 6 September 2013 08:32, eles wrote: > On Thursday, 5 September 2013 at 23:49:18 UTC, Ramon wrote: >> >> On D's, and in particular GDC's, way to conquer the world there will >> evidently be many newbies to notice D, look at it, be drawn to it (and be >> happily trapped). >> >> I am such a newbie

Re: Newbie GDC issues

2013-09-06 Thread Iain Buclaw
On 6 September 2013 08:34, Ramon wrote: > On Friday, 6 September 2013 at 07:02:56 UTC, Iain Buclaw wrote: >> >> >> Dynamic arrays are just structs with a length and ptr field. So when >> you invoke '.length' in the debugger you aren't calling a method, you >> are just retrieving the type's field

Re: Newbie GDC issues

2013-09-06 Thread eles
On Thursday, 5 September 2013 at 23:49:18 UTC, Ramon wrote: On D's, and in particular GDC's, way to conquer the world there will evidently be many newbies to notice D, look at it, be drawn to it (and be happily trapped). I am such a newbie and the idea behind this thread is to collect all the

Re: Newbie GDC issues

2013-09-06 Thread Ramon
On Friday, 6 September 2013 at 07:02:56 UTC, Iain Buclaw wrote: Dynamic arrays are just structs with a length and ptr field. So when you invoke '.length' in the debugger you aren't calling a method, you are just retrieving the type's field value. Currently, the only fancy thing the gdb does

Re: Newbie GDC issues

2013-09-06 Thread Iain Buclaw
On 6 September 2013 01:59, Ramon wrote: > On Thursday, 5 September 2013 at 23:58:06 UTC, H. S. Teoh wrote: > > Thanks and > > >> @Iain: on that note, it looks like gdb thinks it's debugging C++, but D >> doesn't have anything called 'operator[]'. It would be Really Nice if we >> could somehow coax

Re: Newbie GDC issues

2013-09-05 Thread Iain Buclaw
On 6 September 2013 00:56, H. S. Teoh wrote: > > @Iain: on that note, it looks like gdb thinks it's debugging C++, but D > doesn't have anything called 'operator[]'. It would be Really Nice if we > could somehow coax gdb to use opIndex instead (though it doesn't really > help in the case of dyn ar

Re: Newbie GDC issues

2013-09-05 Thread H. S. Teoh
On Fri, Sep 06, 2013 at 02:59:30AM +0200, Ramon wrote: > On Thursday, 5 September 2013 at 23:58:06 UTC, H. S. Teoh wrote: > > Thanks and > > >@Iain: on that note, it looks like gdb thinks it's debugging C++, but > >D doesn't have anything called 'operator[]'. It would be Really Nice > >if we coul

Re: Newbie GDC issues

2013-09-05 Thread Ramon
On Thursday, 5 September 2013 at 23:58:06 UTC, H. S. Teoh wrote: Thanks and @Iain: on that note, it looks like gdb thinks it's debugging C++, but D doesn't have anything called 'operator[]'. It would be Really Nice if we could somehow coax gdb to use opIndex instead (though it doesn't really

Re: Newbie GDC issues

2013-09-05 Thread H. S. Teoh
On Fri, Sep 06, 2013 at 01:49:17AM +0200, Ramon wrote: > On D's, and in particular GDC's, way to conquer the world there will > evidently be many newbies to notice D, look at it, be drawn to it > (and be happily trapped). > > I am such a newbie and the idea behind this thread is to collect all > t

Newbie GDC issues

2013-09-05 Thread Ramon
On D's, and in particular GDC's, way to conquer the world there will evidently be many newbies to notice D, look at it, be drawn to it (and be happily trapped). I am such a newbie and the idea behind this thread is to collect all the issues, quirks and nuisances a newbie might encounter. Pleas