Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!info.curtin.edu.au!newsmaster
From: Dimitri Maziuk <emaziuk@alpha2.curtin.edu.au>
Newsgroups: comp.os.linux.development.apps,comp.os.linux.development.system,comp.os.linux.x,comp.os.linux.hardware,comp.os.linux.setup,comp.unix.bsd.386bsd.misc,comp.unix.bsd.bsdi.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc,misc.consumers
Subject: Re: Why not buy Matrox Millennium
Date: Thu, 22 Aug 1996 03:00:38 +0800
Organization: Curtin University of Technology
Lines: 36
Message-ID: <321B5CD6.B4671AA@alpha2.curtin.edu.au>
References: <4j21ph$crr@slappy.cs.utexas.edu> <8720hb712j.fsf@xeno.xinside.com> <4utk9j$9nr@dira.rv.tis.com> <4v9ro1$fo@anorak.coverform.lan> <4vff57$lal@dira.rv.tis.com>
NNTP-Posting-Host: ra57.curtin.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.13 i486)
Xref: euryale.cc.adfa.oz.au comp.os.linux.development.apps:20770 comp.os.linux.development.system:30190 comp.os.linux.x:38507 comp.os.linux.hardware:48105 comp.os.linux.setup:69750 comp.unix.bsd.386bsd.misc:1059 comp.unix.bsd.bsdi.misc:4674 comp.unix.bsd.netbsd.misc:4455 comp.unix.bsd.freebsd.misc:25844 misc.consumers:94895
Mark Sienkiewicz wrote:
>
>
...
> The difficulty comes when you have to modify the fast/simple code
> to make the complex/slow one work. So, for example, if it
> was only a matter of
> conswrite(...)
> {
> if (cons_graphic)
> cons_graphic_write(...)
> else
> cons_text_write(...)
> }
> you don't lose much. But if you end up with something like
> conswrite()
> {
> if (cons_graphic) A;
> else B;
> C;
> if (cons_graphic) D;
> else E;
> F;
> ...
> }
> then you have impending disaster.
You could also make console an instance of either TextConsole or
GraphConsole and simply call console.write(...)
--
Dimitri
(ps Yeah, I know; I'm not going to rewrite kernel in C++, sorry :)
-------------------------------------------------------------------------------
If Jesus was Jewish, then why did he have a Puerto-Rican name?
-- Zen koan