Re: [groff] hyphenation issues

2018-05-06 Thread Werner LEMBERG
> @Example > .ll 1 > .hy 48 > @endExample > > It seems the word "splitting" should be on a third input line (after > the .hy request). Fixed, thanks. Werner

Re: [groff] hyphenation issues

2018-05-06 Thread Dave Kemper
I hate to distract from the robust discussion on C coding style with a comment about groff, but I noticed what appears to be a missing line from the changes commit d592d320cd43cf4ecee67a7aa80b52691671465d made to doc/groff.texi. Part of the added text reads: @Example .ll 1 .hy 48 @endExample ret

[groff] Forwarded: Re: placement of const is _not_ a matter of style ...

2018-05-06 Thread Mike Bianchi
I wrote: > > >> const char *foo; > > >> char const *foo; > > No, those two have identical meaning. Not according to: https://en.wikipedia.org/wiki/Const_(computer_programming) :

Re: [groff] hyphenation issues

2018-05-06 Thread Ingo Schwarze
Hi Ralph, Ralph Corderoy wrote on Sun, May 06, 2018 at 01:19:09PM +0100: > I think those struggling with Andersons' `right left' rule, or > equivalent, will probably find that const being allowed to shift > position but not meaning is significant Nobody is suggesting that it should be allowed to

Re: [groff] hyphenation issues

2018-05-06 Thread Ralph Corderoy
Hi Carsten, > C++ has the same rules as C regarding this. Thanks for clarifying. Sorry you had to do it twice; Mike must have forwarded my off-list email from earlier to the list so there was some duplication. > See e.g. Bjarne Stroustrup's "The C++ Programming Language" Forth > Edition ยง7.5 p

Re: [groff] placement of const is _not_ a matter of style ...

2018-05-06 Thread Carsten Kunze
> Ralph Corderoy hat am 6. Mai 2018 um 00:03 > geschrieben: > Just to make certain we're arguing about the same thing, I'm talking C > here, not C++. I've no idea whether C++ is the same or different in > this respect, and don't wish to learn. :-) As said the same applies for C++. "const int

Re: [groff] placement of const is _not_ a matter of style ...

2018-05-06 Thread Ralph Corderoy
Hi Mike, You dropped the list. That's fine if it were deliberate; just checking. > > > >> const char *foo; > > > >> char const *foo; > > > > No, those two have identical meaning. ... > These examples are found there. > (( reformatted for emphasis )) > > void Foo( int *

Re: [groff] placement of const is _not_ a matter of style ...

2018-05-06 Thread Mike Bianchi
On Sat, May 05, 2018 at 05:27:39PM +0100, Ralph Corderoy wrote: > > >> const char *foo; > > >> char const *foo; > > No, those two have identical meaning. Not according to: https://en.wikipedia.org/wiki/Const_(computer_programming) This is a rather through discussion of the topic. Wel

Re: [groff] hyphenation issues

2018-05-06 Thread Carsten Kunze
> Ralph Corderoy hat am 6. Mai 2018 um 14:33 > geschrieben: > I don't know if C++ has different semantics that mean choice of position > is less flexible; I've just been talking about C. C++ has the same rules as C regarding this. See e.g. Bjarne Stroustrup's "The C++ Programming Language" Fo

Re: [groff] hyphenation issues

2018-05-06 Thread Ralph Corderoy
Hi Ingo, > > Perhaps you're in a bit of a silo? :-) > > Perhaps. :-) Branden's cited one source he's seen. I had a Google last night, but was too tired to post the results. A _Dr Dobbs_ blog article in 2010 recommends always writing `int const'. http://www.drdobbs.com/cpp/the-mutable-comprehe

Re: [groff] hyphenation issues

2018-05-06 Thread Ralph Corderoy
Hi Ingo, > What you described as a pointer to a 2x3 array of immutable pointers > to strings might be > char **const (*gbrs_evil)[2][3] > But as i said, it is evil, so maybe i'm wrong, too. It's really not that evil. char **const (*gbrs_evil)[2][3] gbrs_evil is a

Re: [groff] hyphenation issues

2018-05-06 Thread Ralph Corderoy
Hi Branden, > I had first _heard_ of it some years ago, but the most significant bit > of prominent evangelism for it I'm aware of is from Ben Klemens's > _21st Century C_: > https://www.goodreads.com/book/show/14514281-21st-century-c Interesting, thanks. The second edition gets a better star ra

Re: [groff] hyphenation issues

2018-05-06 Thread Ralph Corderoy
Hi Branden, > Getting back on topic... Square! > My debugging instincts tell me to always report the value of an > argument being rejected. For one thing, the user could have passed > .hy a register value (possibly with arithmetic manipulation), and if > we screw up the validity checks it's eas