From owner-freebsd-hackers Thu Dec 11 19:55:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA11996 for hackers-outgoing; Thu, 11 Dec 1997 19:55:38 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from d198-232.uoregon.edu (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA11986 for ; Thu, 11 Dec 1997 19:55:27 -0800 (PST) (envelope-from mini@d198-232.uoregon.edu) Received: (from mini@localhost) by d198-232.uoregon.edu (8.8.5/8.8.5) id TAA18725; Thu, 11 Dec 1997 19:54:48 -0800 (PST) Message-ID: <19971211195447.15294@micron.mini.net> Date: Thu, 11 Dec 1997 19:54:47 -0800 From: Jonathan Mini To: Terry Lambert Cc: j_mini@efn.org, jkh@time.cdrom.com, ksmm@cybercom.net, freebsd-hackers@FreeBSD.ORG Subject: Re: Why so many steps to build new kernel? Reply-To: Jonathan Mini References: <19971211021856.61158@micron.mini.net> <199712120242.TAA07290@usr02.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e In-Reply-To: <199712120242.TAA07290@usr02.primenet.com>; from Terry Lambert on Fri, Dec 12, 1997 at 02:42:07AM +0000 X-files: The Truth is Out There Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert stands accused of saying: > > 3) C++ does not implement data hiding. Sure, you have opaque structs, > > but you cannoy make an opaque class. That is, you cannot have a class > > defined where you know how to interface with the functions, but not > > the details of the internal data. Because you have to define the > > private data within the same scope as the public interface, private > > datatypes aren't possible. > > This is incorrect. > Terry's counter-example works, but you can't create an object of OpaqueClass and have it work, you _HAVE_ to call a function to create an object of myImplementationClass that returns a pointer to it as OpaqueClass. This is not different than in C. The same implementation could be implemented in C via type-casting or opaque structs. Moot point. -- Jonathan Mini Ingenious Productions Software Development P.O. Box 5693, Eugene, Or. 97405 "A child of five could understand this! Quick -- Fetch me a child of five."