Re: Automated D code editing?

2012-10-13 Thread Aziz K.
On Fri, 12 Oct 2012 21:43:07 +0200, Andrej Mitrovic wrote: You mean at compile-time? Try this: http://dpaste.dzfl.pl/06b95c3f Copied below: [SNIP] That's pretty ingenious!

Re: Automated D code editing?

2012-10-12 Thread Aziz K.
On Fri, 12 Oct 2012 19:51:02 +0200, Lubos Pintes wrote: Hi, I am still playing with DGUI library. Besides other things, I would like to convert enum names from "THIS_STUPID_NAMING_CONVENTION_WHICH_I_ABSOLUTELY_HATE" to "thisGoodOne". Obviously I could do this by hand but it is a bit time co

Re: revamped candydoc

2012-10-12 Thread Aziz K.
On Thu, 11 Oct 2012 21:30:11 +0200, Jacob Carlborg wrote: I liked the style that the Tango docs are using much better. What? You don't like my soft, green colours? Shame on you! :P Ok, I'm not happy with the style myself, but I want to concentrate on functionality more atm.

Re: revamped candydoc

2012-10-12 Thread Aziz K.
On Fri, 12 Oct 2012 08:16:54 +0200, Jacob Carlborg wrote: Why is that? Tango is working just fine and Phobos is still missing some stuff that Tango has. Actually, I'm using both and there's nothing wrong with that. Tango is just yet another third party library. Yeah, no disagreement ther

Re: revamped candydoc

2012-10-12 Thread Aziz K.
On Fri, 12 Oct 2012 08:19:23 +0200, Jacob Carlborg wrote: Have a look at this documentation of submodules: http://git-scm.com/book/en/Git-Tools-Submodules Be sure to point submodules to a public address. That was a good read, but unfortunately it deterred me from using submodules. Sounds

Re: revamped candydoc

2012-10-11 Thread Aziz K.
On Thu, 11 Oct 2012 21:33:15 +0200, Jacob Carlborg wrote: If you're using git you could add Tango as a submodule. I'm talking about Tango-D2 here, I heard you're porting Dil to D2. It might be possible for D1 as well using git svn. Interesting, I didn't realize until now that you can do

Re: revamped candydoc

2012-10-11 Thread Aziz K.
I'll be happy to help you compile DIL yourself. That way I can see where my assumptions are false and my instructions are lacking and make it work for different platforms and needs. I've been considering just copying Tango's files to my src folder, because it would make compiling much easie

Re: revamped candydoc

2012-10-11 Thread Aziz K.
It's very easy to use DIL for doc generation (at least I try hard to make it so.) In your case you'd just have to run this command (use -I as well if required): dil ddoc path/to/output/ package1/*.d package2/*.d -v --kandil -hl Check out http://code.google.com/p/dil/wiki/Kandil for more in

Re: revamped candydoc

2012-10-11 Thread Aziz K.
Hi, You might also want to check out my solution to generating documentation for D projects. I've just run DIL on Phobos2 and uploaded the files to my Dropbox account: http://dl.dropbox.com/u/17101773/doc/phobos2/index.html Where else would you get a PDF of everything in Phobos2, but here (7

Re: floating point divide

2012-10-11 Thread Aziz K.
int n1 = 10, n2 = 2; float f = (n1+0.0f)/n2; Casting n1 to float would also work, but I hope the compiler is smart enough to optimize away the plus expression.