Re: [ng-spice] Readline Response
On Fri, 27 Aug 1999, Kev wrote:
> You can then pass a pointer to either the base or derived class
> to a routine and get different behavior:
I have seen something similar in spice: spice builds up tables for
analyses and devices. Each device has a load function, a delete function
and so on. May be we can create a class called "device" and then derive a
diode, a bjt, etc. ? Spice has a similar structure, data between functions
are passed after a cast to void and casted back to an "expected" type when
needed.
> Hope this helps.
Thank you,
Paolo
Partial thread listing: