Re: Inconsistent coding style in code examples

2015-02-13 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-12 23:29, Walter Bright wrote: Right on dlang.org under [Resources] there's [Bug Tracker]. I don't believe that's making it difficult to file a bug report. I had no idea that link existed :) -- /Jacob Carlborg

Re: Inconsistent coding style in code examples

2015-02-13 Thread Mengu via Digitalmars-d
On Tuesday, 10 February 2015 at 21:00:11 UTC, H. S. Teoh wrote: This PR: https://github.com/D-Programming-Language/phobos/pull/2973 introduces a code example with 2-space indentation, whereas the rest of Phobos and dlang.org uses 4-space indentation. I don't like this. It's inconsist

Re: Inconsistent coding style in code examples

2015-02-12 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 12, 2015 at 10:47:28PM +, weaselcat via Digitalmars-d wrote: > On Thursday, 12 February 2015 at 20:22:42 UTC, H. S. Teoh wrote: > >On Thu, Feb 12, 2015 at 12:16:38PM -0800, Walter Bright via Digitalmars-d > >wrote: > >[...] > >>Me, for example, I very very rarely bother to report a

Re: Inconsistent coding style in code examples

2015-02-12 Thread weaselcat via Digitalmars-d
On Thursday, 12 February 2015 at 20:22:42 UTC, H. S. Teoh wrote: On Thu, Feb 12, 2015 at 12:16:38PM -0800, Walter Bright via Digitalmars-d wrote: [...] Me, for example, I very very rarely bother to report a bug in a product I use. The reason isn't because I am lazy (although I am). It's becaus

Re: Inconsistent coding style in code examples

2015-02-12 Thread Walter Bright via Digitalmars-d
On 2/12/2015 1:21 PM, ketmar wrote: i may never agree on some bugreports, but i feel that D community is very warm in accepting bug reports. and most of them either getting fixed, or at least i'm told why they aren't a bugs. i mean that reporting bugs to D bugzilla has the very visible effect, an

Re: Inconsistent coding style in code examples

2015-02-12 Thread Walter Bright via Digitalmars-d
On 2/12/2015 1:03 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, Feb 12, 2015 at 12:55:40PM -0800, Walter Bright via Digitalmars-d wrote: It says it's easy to submit bug reports for D. Generally, I agree. But OTOH, we *did* have people complaining on the forums every now and then that they fo

Re: Inconsistent coding style in code examples

2015-02-12 Thread Walter Bright via Digitalmars-d
On 2/12/2015 1:12 PM, Vladimir Panteleev wrote: On Thursday, 12 February 2015 at 20:16:40 UTC, Walter Bright wrote: Me, for example, I very very rarely bother to report a bug in a product I use. The reason isn't because I am lazy (although I am). It's because companies make it hard to report a b

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Thu, 12 Feb 2015 21:12:26 +, Vladimir Panteleev wrote: > On Thursday, 12 February 2015 at 20:16:40 UTC, Walter Bright wrote: >> Me, for example, I very very rarely bother to report a bug in a product >> I use. The reason isn't because I am lazy (although I am). It's because >> companies mak

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Thu, 12 Feb 2015 12:16:38 -0800, Walter Bright wrote: > Why you did it doesn't matter. What matters is you did it and > contributed it. Also, just because it wasn't reported before doesn't > mean it wasn't happening to people. The vast majority will see a bug, > and just dump the compiler and m

Re: Inconsistent coding style in code examples

2015-02-12 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 12 February 2015 at 20:16:40 UTC, Walter Bright wrote: Me, for example, I very very rarely bother to report a bug in a product I use. The reason isn't because I am lazy (although I am). It's because companies make it hard to report a bug. If they want to act like they're doing me a

Re: Inconsistent coding style in code examples

2015-02-12 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 12, 2015 at 12:55:40PM -0800, Walter Bright via Digitalmars-d wrote: > On 2/12/2015 12:20 PM, H. S. Teoh via Digitalmars-d wrote: > >On Thu, Feb 12, 2015 at 12:16:38PM -0800, Walter Bright via Digitalmars-d > >wrote: > >[...] > >>Me, for example, I very very rarely bother to report a b

Re: Inconsistent coding style in code examples

2015-02-12 Thread Walter Bright via Digitalmars-d
On 2/12/2015 12:20 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, Feb 12, 2015 at 12:16:38PM -0800, Walter Bright via Digitalmars-d wrote: [...] Me, for example, I very very rarely bother to report a bug in a product I use. The reason isn't because I am lazy (although I am). It's because compan

Re: Inconsistent coding style in code examples

2015-02-12 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 12, 2015 at 12:16:38PM -0800, Walter Bright via Digitalmars-d wrote: [...] > Me, for example, I very very rarely bother to report a bug in a > product I use. The reason isn't because I am lazy (although I am). > It's because companies make it hard to report a bug. If they want to > act

Re: Inconsistent coding style in code examples

2015-02-12 Thread Walter Bright via Digitalmars-d
On 2/12/2015 1:46 AM, ketmar wrote: On Wed, 11 Feb 2015 16:09:59 -0800, Walter Bright wrote: On 2/11/2015 3:34 PM, ketmar wrote: no, i didn't found anything else. with this patch dmd with wine works perfectly -- no crashes since then. Thanks again for finding the problem and posting a fix.

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 16:09:59 -0800, Walter Bright wrote: > On 2/11/2015 3:34 PM, ketmar wrote: >> no, i didn't found anything else. with this patch dmd with wine works >> perfectly -- no crashes since then. > > Thanks again for finding the problem and posting a fix. now i feel ashamed, 'cause i

Re: Inconsistent coding style in code examples

2015-02-12 Thread Mike Parker via Digitalmars-d
On 2/12/2015 3:51 AM, H. S. Teoh via Digitalmars-d wrote: On Wed, Feb 11, 2015 at 06:32:27PM +, Vladimir Panteleev via Digitalmars-d wrote: On Wednesday, 11 February 2015 at 18:30:13 UTC, H. S. Teoh wrote: but the fact that (1) I don't even have kindlegen, It's a free download. Not FOSS

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 3:34 PM, ketmar wrote: no, i didn't found anything else. with this patch dmd with wine works perfectly -- no crashes since then. Thanks again for finding the problem and posting a fix.

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 15:21:59 -0800, Walter Bright wrote: > On 2/11/2015 2:34 PM, ketmar wrote: >> On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: >> >>> On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everythin

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 2:34 PM, ketmar wrote: On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-). Bugzill

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: > On 2/11/2015 1:37 PM, ketmar wrote: >> yep, the whole dmd can be built under wine, using tools from dmc and >> dmc itself. everything works like a charm (except dmd.exe itself, which >> is broken ;-). > > Bugzilla issue? sure i did, alon

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-). Bugzilla issue?

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 2:15 PM, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 18:53:41 UTC, H. S. Teoh wrote: But what's the use if I don't have kindle for viewing the results? You can find .mobi viewers online. Amazon provides some as well, I think. 1. I've seen Kindles at the pawn shop

Re: Inconsistent coding style in code examples

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 18:53:41 UTC, H. S. Teoh wrote: But what's the use if I don't have kindle for viewing the results? You can find .mobi viewers online. Amazon provides some as well, I think.

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 10:51:19 -0800, H. S. Teoh via Digitalmars-d wrote: >> >and (2) I don't have a Windows machine to test changes to win32.mak, >> I think you can run DM make under Wine. > Interesting. yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything w

Re: Inconsistent coding style in code examples

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 11, 2015 at 06:32:27PM +, Vladimir Panteleev via Digitalmars-d wrote: > On Wednesday, 11 February 2015 at 18:30:13 UTC, H. S. Teoh wrote: > >but the fact that (1) I don't even have kindlegen, > > It's a free download. Not FOSS though, binary blob. But what's the use if I don't ha

Re: Inconsistent coding style in code examples

2015-02-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-10 22:36, Steven Schveighoffer wrote: Please, let's not cater to kindles in ddoc. The documentation is generated first and foremost for dlang.org. If you want to write a script to make a book out of it, fine, but screwing up the web site for the sake of the few people that use kindles

Re: Inconsistent coding style in code examples

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 18:30:13 UTC, H. S. Teoh wrote: but the fact that (1) I don't even have kindlegen, It's a free download. Not FOSS though, binary blob. and (2) I don't have a Windows machine to test changes to win32.mak, I think you can run DM make under Wine.

Re: Inconsistent coding style in code examples

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 10, 2015 at 02:25:01PM -0800, H. S. Teoh via Digitalmars-d wrote: [...] > That leaves the mechanical solution, which is actually very easy. It > doesn't have to be a sophisticated solution involving a full-blown D > lexer. It could be as simple as substituting initial runs of spaces on

Re: Inconsistent coding style in code examples

2015-02-10 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 10, 2015 at 09:44:17PM +, Vladimir Panteleev via Digitalmars-d wrote: > On Tuesday, 10 February 2015 at 21:21:14 UTC, Walter Bright wrote: > >On 2/10/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: > >>Walter's reason for this is that 4-space indentation makes it look > >>bad on

Re: Inconsistent coding style in code examples

2015-02-10 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 10 February 2015 at 21:21:14 UTC, Walter Bright wrote: On 2/10/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: Walter's reason for this is that 4-space indentation makes it look bad on Kindle and other small-screen readers. My Kindle 3 has a 37 character screen width when using

Re: Inconsistent coding style in code examples

2015-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/15 1:20 PM, Walter Bright wrote: On 2/10/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: Walter's reason for this is that 4-space indentation makes it look bad on Kindle and other small-screen readers. My Kindle 3 has a 37 character screen width when using a monospace font (i.e. cod

Re: Inconsistent coding style in code examples

2015-02-10 Thread Steven Schveighoffer via Digitalmars-d
On 2/10/15 4:20 PM, Walter Bright wrote: On 2/10/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: Walter's reason for this is that 4-space indentation makes it look bad on Kindle and other small-screen readers. My Kindle 3 has a 37 character screen width when using a monospace font (i.e. cod

Re: Inconsistent coding style in code examples

2015-02-10 Thread Walter Bright via Digitalmars-d
On 2/10/2015 1:09 PM, Meta wrote: I hate 2-space tabs as much as I hate 8-space tabs. You'll hate 4-space if you read it on an ereader.

Re: Inconsistent coding style in code examples

2015-02-10 Thread Walter Bright via Digitalmars-d
On 2/10/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: Walter's reason for this is that 4-space indentation makes it look bad on Kindle and other small-screen readers. My Kindle 3 has a 37 character screen width when using a monospace font (i.e. code font). Trying to read code formatted to

Re: Inconsistent coding style in code examples

2015-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/15 12:57 PM, H. S. Teoh via Digitalmars-d wrote: This PR: https://github.com/D-Programming-Language/phobos/pull/2973 introduces a code example with 2-space indentation, whereas the rest of Phobos and dlang.org uses 4-space indentation. I don't like this. It's inconsistent, and

Re: Inconsistent coding style in code examples

2015-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/15 1:13 PM, Andrei Alexandrescu wrote: On 2/10/15 12:57 PM, H. S. Teoh via Digitalmars-d wrote: This PR: https://github.com/D-Programming-Language/phobos/pull/2973 introduces a code example with 2-space indentation, whereas the rest of Phobos and dlang.org uses 4-space indentation.

Re: Inconsistent coding style in code examples

2015-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/15 1:09 PM, Meta wrote: I hate 2-space tabs as much as I hate 8-space tabs. When I joined Facebook (2-space indent and 80 columns) I couldn't believe my eyes. Then I got used to it. -- Andrei

Re: Inconsistent coding style in code examples

2015-02-10 Thread Meta via Digitalmars-d
On Tuesday, 10 February 2015 at 21:00:11 UTC, H. S. Teoh wrote: This PR: https://github.com/D-Programming-Language/phobos/pull/2973 introduces a code example with 2-space indentation, whereas the rest of Phobos and dlang.org uses 4-space indentation. I don't like this. It's inconsist

Inconsistent coding style in code examples

2015-02-10 Thread H. S. Teoh via Digitalmars-d
This PR: https://github.com/D-Programming-Language/phobos/pull/2973 introduces a code example with 2-space indentation, whereas the rest of Phobos and dlang.org uses 4-space indentation. I don't like this. It's inconsistent, and is detracting from the professional look of D. It's bad eno