Reply-To: "Kevin Aylward"
From: "Kevin Aylward"
References: <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <6RWg9.101$Fc5.email@example.com> <firstname.lastname@example.org> <3D84CCDE.2F34BCF9@NoSpammingMer-a-tReally.com>
Subject: Re: Alan Blumlein site
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-Inktomi-Trace: public1-pete2-5-cust19.pete.broadband.ntl.com 1032120184 27627 126.96.36.199 (15 Sep 2002 20:03:04 GMT)
Date: Sun, 15 Sep 2002 21:02:56 +0100
NNTP-Posting-Date: Sun, 15 Sep 2002 21:03:05 BST
"Reagan Thomas" wrote in message
> Kevin Aylward wrote:
> > For instance, I truly
> > discovered/invented a *KEY* aspect of C++ prior to having any
> > of C++, i.e. function pointers in data structures that result in the
> > same syntax as that use in C++.
> [snip, slice]
> If you did it after sometime in 1992, I scooped you, buddy.
Well, I only started C around 1990
> a Z80 emulator that used arrays of pointers to structures... the
> instruction opcodes are indexes in to the arrays. The structures have
> variables that describe characteristics of the instruction (number of
> instr. bytes, clock cycles, flags, etc). To top it all off, there are
> serveral pointers to functions which perform the actual instruction
> The only reason I can see that we had to 'discover' this aspect of C
> is that it's hardly taught at all. I recall reading one text that
> had an example where the value of an x86 interrupt vector was stored
> in for later revectoring. I saw that and said, "Hmm, I wonder if I
> just call that sucker?" Yep. "I wonder if I can stick that variable
> in a struct and still call it?" Yep.
Note that the key bit I was referring to was function pointers in
structures. This results in a function call like.
I played about with various approaches to solve a problem, actual I was
writing a dos screen saver that had protons collidering with each other,
I worked at the SuperConduction SuperCollider at the time. Anyway, I
still remember asking my "mentor" could I put functions in a structure,
to which the reply was, don't be daft. So I ended up with the pointers.
It just was the natural way to solve the problem.
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.