Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Mike Parker
On 7/9/2011 5:43 AM, Steven Schveighoffer wrote: On Fri, 08 Jul 2011 16:02:39 -0400, Johannes Pfau wrote: Steven Schveighoffer wrote: On Fri, 08 Jul 2011 15:39:22 -0400, Johannes Pfau wrote: Andrej Mitrovic wrote: What's the license on the bindings? Have not thought about that yet, but

Re: D programming language specification ebook

2011-07-08 Thread Jordi Sayol
Al 09/07/11 07:12, En/na Russel Winder ha escrit: > > I suspect I must be in a community of 1 :-) > ...a community of 2... at least :-) -- Jordi Sayol smime.p7s Description: S/MIME Cryptographic Signature

Re: D programming language specification ebook

2011-07-08 Thread Walter Bright
On 7/8/2011 9:59 PM, Jordi Sayol wrote: Al 09/07/11 06:20, En/na Walter Bright ha escrit: Amazon has a kindle app for Windows which will display it, there's probably one for Linux too. 'fbreader' properly handle 'dlangspec.mobi' on Ubuntu 11.04 That's good to know! Russel?

Re: D programming language specification ebook

2011-07-08 Thread Walter Bright
On 7/8/2011 10:12 PM, Russel Winder wrote: Whilst e-books and tablets may be the current fashion, PDF is still the most portable document distribution format. It would be good if PDFs were made and released -- especially for those of us who do most of our coding whilst disconnected from the Inte

Re: D programming language specification ebook

2011-07-08 Thread Russel Winder
On Fri, 2011-07-08 at 21:20 -0700, Walter Bright wrote: [ . . . ] > The makefile for the documentation has a build target for pdf's, but I > haven't > tried it. Whilst e-books and tablets may be the current fashion, PDF is still the most portable document distribution format. It would be good i

Re: D programming language specification ebook

2011-07-08 Thread Jordi Sayol
Al 09/07/11 06:20, En/na Walter Bright ha escrit: > Amazon has a kindle app for Windows which will display it, there's probably > one for Linux too. > 'fbreader' properly handle 'dlangspec.mobi' on Ubuntu 11.04 Best regards, -- Jordi Sayol smime.p7s Description: S/MIME Cryptographic Signatu

Re: D programming language specification ebook

2011-07-08 Thread Walter Bright
On 7/8/2011 8:58 PM, Russel Winder wrote: Is there a PDF of this? The URL http://www.digitalmars.com/d/2.0/ has a link to a PDF page http://www.prowiki.org/wiki4d/wiki.cgi?LanguageSpecification/PDFArchive which has a circualr reference back to the Digital Mars site and no PDF about D 2.0, just v

Re: D programming language specification ebook

2011-07-08 Thread Russel Winder
On Fri, 2011-07-08 at 19:30 -0700, Walter Bright wrote: > Here's a binary of it. Try it out on your ebook reader! > > http://digitalmars.com/d/2.0/dlangspec.mobi Walter, Is there a PDF of this? The URL http://www.digitalmars.com/d/2.0/ has a link to a PDF page http://www.prowiki.org/wiki4d/wiki

Re: D programming language specification ebook

2011-07-08 Thread Walter Bright
Here's a binary of it. Try it out on your ebook reader! http://digitalmars.com/d/2.0/dlangspec.mobi

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Jonathan M Davis
On 2011-07-08 13:42, Andrej Mitrovic wrote: > Using std.c.windows.windows is going to be problematic because the > WindowsAPI bindings have a void* handle typedef, and > std.c.windows.windows has the same typedef. > > If your library has this function: > foo(HDC hdc) { } > > I can't use it from m

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Andrej Mitrovic
On 7/8/11, Steven Schveighoffer wrote: > I think this should cause no problems with linking proprietary > code. I don't think it would qualify as a phobos module though. That doesn't make sense to me. If the .d files are LGPL'ed you can't import them to your D projects without the license going

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Steven Schveighoffer
On Fri, 08 Jul 2011 16:02:39 -0400, Johannes Pfau wrote: Steven Schveighoffer wrote: On Fri, 08 Jul 2011 15:39:22 -0400, Johannes Pfau wrote: Andrej Mitrovic wrote: What's the license on the bindings? Have not thought about that yet, but I think I'll use the boost license. (I'm not sure

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Andrej Mitrovic
That was referring to this module: https://github.com/jpf91/cairoD/blob/master/src/cairo/win32.d

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Andrej Mitrovic
Using std.c.windows.windows is going to be problematic because the WindowsAPI bindings have a void* handle typedef, and std.c.windows.windows has the same typedef. If your library has this function: foo(HDC hdc) { } I can't use it from my code if I use the WindowsAPI bindings: import win32.winde

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Andrej Mitrovic
The existing D1 bindings are BSD. Boost would be great, although you seem to have already put the LGPL clause in some of your translated header files. As I understand it, LGPL comes into play if you want to link statically, alter the source of the library, or distribute the DLLs. AFAIK only if you

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Johannes Pfau
Steven Schveighoffer wrote: >On Fri, 08 Jul 2011 15:39:22 -0400, Johannes Pfau >wrote: > >> Andrej Mitrovic wrote: >>> What's the license on the bindings? >> >> Have not thought about that yet, but I think I'll use the boost >> license. (I'm not sure if that's possible, as >> cairo is LGPL, maybe

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Steven Schveighoffer
On Fri, 08 Jul 2011 15:39:22 -0400, Johannes Pfau wrote: Andrej Mitrovic wrote: What's the license on the bindings? Have not thought about that yet, but I think I'll use the boost license. (I'm not sure if that's possible, as cairo is LGPL, maybe I'll have to release the binding part at leas

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Johannes Pfau
Andrej Mitrovic wrote: >What's the license on the bindings? Have not thought about that yet, but I think I'll use the boost license. (I'm not sure if that's possible, as cairo is LGPL, maybe I'll have to release the binding part at least as LGPL, as that's based on the cairo headers? Stupid licens

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Andrej Mitrovic
What's the license on the bindings?

Re: Programming Windows D Examples are now Online!

2011-07-08 Thread Johannes Pfau
Andrej Mitrovic wrote: >Behold this glorious GUI with a rounded rectangle: >http://i.imgur.com/Yszgd.png > >Okay, so that's actually Cairo with the win32 back-end. Surprisingly, >using the two together is quite simple. I had to convert the cairo >headers, do a little tweaks to help HTOD out, used i

D programming language specification ebook

2011-07-08 Thread Walter Bright
The code to generate the first D spec ebook is now checked in to https://github.com/D-Programming-Language/d-programming-language.org You'll need to download kindlegen from Amazon to generate the actual ebook. http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621 To build: make -f wi