Subject: Re: Adding video mode info to struct wsscreen_descr
To: TAKEMURA Shin <takemura@netbsd.org>
From: Bang Jun-Young <junyoung@mogua.com>
List: tech-kern
Date: 07/10/2002 19:25:29
On Wed, Jul 10, 2002 at 06:33:48PM +0900, TAKEMURA Shin wrote:
> > On Wed, Jul 10, 2002 at 11:44:54AM +0900, TAKEMURA Shin wrote:
> > > You've already use the hack for long time :-)
> > >
> > > struct wsdisplay_softc {
> > > struct device sc_dv; /* <- HERE! */
> >
> > "We can do more hack simply because there's already a hack." ;-)
>
> I think the hack is NOT quick nor adhoc. I believe that it is
I should have been more careful in choosing words. ;-)
> very good/sophisticated approach to describe a data structure
> which is derived from generic structure. Some C++ compiler do
> this internally to implement class inheritance mechanism.
> In case above, it tells that 'wsdisplay_softc' is a subclass
> of 'device'. Don't you think it is "right" ?
Yes, but I'd like to say that C is not C++. :-/
Anyway, I will back out the changes from my local tree and try
to see if there's a better method.
Jun-Young
--
Bang Jun-Young <junyoung@mogua.com>