Date: Wed, 6 Nov 2002 15:17:44 -0700 (MST) From: Steve Coltrin <spcoltri@omcl.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/45011: style(9): '->' and '.' don't require spaces Message-ID: <200211062217.gA6MHi4q001418@hrothgar.omcl.org>
next in thread | raw e-mail | index | archive | help
>Number: 45011 >Category: docs >Synopsis: style(9): '->' and '.' don't require spaces >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 06 14:20:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Steve Coltrin >Release: FreeBSD 4.7-STABLE i386 >Organization: Orbital Mind Control Lasers >Environment: System: FreeBSD hrothgar.omcl.org 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Oct 10 20:14:28 MDT 2002 spcoltri@hrothgar.omcl.org:/usr/obj/usr/src/sys/HROTHGAR i386 >Description: Per style(9): Unary operators do not require spaces, binary operators do. This differs from the universal usage of '->' and '.'. >How-To-Repeat: >Fix: --- src/share/man/man9/style.9.old Wed Nov 6 15:10:20 2002 +++ src/share/man/man9/style.9 Wed Nov 6 15:12:20 2002 @@ -459,7 +459,11 @@ exit(error); .Ed .Pp -Unary operators do not require spaces, binary operators do. +Unary operators do not require spaces, binary operators other than +.Ql \&-> +and +.Ql \&. +do. Do not use parentheses unless they are required for precedence or unless the statement is confusing without them. Remember that other people may >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211062217.gA6MHi4q001418>