simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] HWPort pointers


From: Michael Hennebry
Subject: Re: [Simulavr-devel] HWPort pointers
Date: Sun, 17 Nov 2013 15:41:47 -0600 (CST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Sun, 17 Nov 2013, ThomasK wrote:

I think, not really a reason for this. Some have made this with pointers, some as static instance. Maybe it's a good idea to make it all in the same way, if there isn't a special reason to take the other way.

Am 17.11.2013 07:48, schrieb Michael Hennebry:
I've noticed that in header files whose names end in base.h
all the HWPort's are direct members.
In the other MCU headers, the HWPort's have pointers to them.
Is there a reason for this?
The sole exception seems to be portx in at8515.h .

I'd say make them all static instances.
'Twould eliminate some unneeded indirection.
I'm pretty sure they can all be initialized in the pre-body
portions of the constructors of the classes that use them.

--
Michael   address@hidden
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]