[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Re: "FREE" CPLD fitter tools
Steve Williams wrote:
>
> I have comments. Do you mind?
The more the better. Especially if they're as helpful as this one is.
>
> First, I think it would be good if the jedec_read function return a cookie
> that holds the data from the jedec file, instead of using globals. This
> allows for multiple open images, and is also well suited for libraries that
> get turned into DLLs.
I learnt some C in the 80s (pre OOP) and lately have been using Java and
Perl (never C++). I started writing these files like Java: I want a
'fuses class', so I put the typedefs and accessor methods in one file...
now how do I associate the two? Oh dear, doesn't work. Have to make the
object global and only allow users to create one... Now I see all you
have to do is pass the object reference to the methods. This means
everything I've written is kind of 'inside out' - I'll convert it
all to the form you describe, since its clearly so much better.
It may take a little while since there are a lot of (mainly mechanical)
changes needed.
Thank you!
Graham