From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] useful language extension, or no? From: "rob pike, esq." MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 16 Jul 2002 12:50:04 -0400 Topicbox-Message-UUID: cdc53bcc-eaca-11e9-9e20-41e7f4b1d025 > What about the promotion of a structure from itself > to one of its members in a function call simply because > it makes locking a structure easier? Surely passing in > a pointer to a function and having the in-func pointer completely > different violates some standard of programming languages. It's called inheritance. > Why was it worthwhile to change the language in this respect, > for the idiom of "always having to make sure the lock is the > first item in the structure for pointer coersion is a pain?" Yes. -rob