Date: Thu, 11 Dec 1997 19:54:47 -0800 From: Jonathan Mini <j_mini@efn.org> To: Terry Lambert <tlambert@primenet.com> 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? Message-ID: <19971211195447.15294@micron.mini.net> In-Reply-To: <199712120242.TAA07290@usr02.primenet.com>; from Terry Lambert on Fri, Dec 12, 1997 at 02:42:07AM %2B0000 References: <19971211021856.61158@micron.mini.net> <199712120242.TAA07290@usr02.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert <tlambert@primenet.com> 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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971211195447.15294>