Re: Derelict linking (Debian + derelict + dmd 2.062)

2013-06-07 Thread mimi
Thanks! It worked! On Saturday, 8 June 2013 at 03:44:22 UTC, Mike Parker wrote: On Saturday, 8 June 2013 at 00:27:36 UTC, mimi wrote: Hi! I am trying to add SDL support to my project. libderelict-dev installed into my Debian and I am just added "import derelict.sdl2.sdl;". And cau

Derelict linking (Debian + derelict + dmd 2.062)

2013-06-07 Thread mimi
Hi! I am trying to add SDL support to my project. libderelict-dev installed into my Debian and I am just added "import derelict.sdl2.sdl;". And caused: dmd -I/usr/include/dmd/ -unittest -g -debug -debug=osmpbf -L-lDerelictUtil -L-lDerelictSDL2 -L-ldl -ofmain libosmpbfd.a math/rtree2d.d mat

Re: Bug or feature?

2013-05-27 Thread mimi
On Monday, 27 May 2013 at 11:32:46 UTC, Maxim Fomin wrote: On Monday, 27 May 2013 at 10:07:49 UTC, mimi wrote: Well, how you can reduce the long ugly name in this case? In the real function I mentioned it so many times. By not making the name ugly big. Other people do. In addition

Re: How do you guys debug large programs?

2013-05-27 Thread mimi
On Monday, 27 May 2013 at 19:55:57 UTC, Gary Willoughby wrote: This is quite an open ended question but i wondered how you guys debug your D programs (i'm talking about stepping through code, setting breakpoints, etc). The lack of nice IDE's with integrated debuggers is worrying when working wi

Re: Bug or feature?

2013-05-27 Thread mimi
On Monday, 27 May 2013 at 10:17:01 UTC, Namespace wrote: void foo( S s ) { auto local = this.bigUglyName; auto b = s.bigUglyName; writeln( "bigUglyName (AKA local)=", local, " b=", b ); } :P By the way, yes. Thanks for that, I'm stupid today.

Re: Bug or feature?

2013-05-27 Thread mimi
Well, how you can reduce the long ugly name in this case? In the real function I mentioned it so many times.

Bug or feature?

2013-05-26 Thread mimi
import std.stdio; struct S { int bigUglyName; void foo( S s ) { alias bigUglyName local; alias s.bigUglyName b; writeln( "bigUglyName (AKA local)=", local, " b=", b ); } } void main() { S s1; S s2; s1.bigUglyName = 1; s2.bigUglyName = 2;

Re: lookup fields struct

2013-05-26 Thread mimi
Wow! thanks!

lookup fields struct

2013-05-26 Thread mimi
Hi! I am want to get list of fields types and offsets in struct by the template. I.e., lookup through this struct: struct S { int a; string b; someptr* c; }; template Lookup!( S )(); returns something as: field #0, int, offset 0 field #1, string, offset 8, field #2, someptr, offset 16 How