Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Implement Signal/Slot pattern in C

0 views
Skip to first unread message

Steven Woody

unread,
Oct 23, 2009, 8:51:18 PM10/23/09
to
Hi,

Is there possible to implement Signal/Slot pattern in C? I am
currently doing with an embedded project that use C only.

-
narke

johnza...@gmail.com

unread,
Oct 23, 2009, 9:13:23 PM10/23/09
to

You would have to use the C preprocessor.

See Miro Samek's book Practical Statecharts in C/C++ for tips on doing
OO in C.

Steven Woody

unread,
Oct 24, 2009, 11:29:48 PM10/24/09
to
On Oct 24, 9:13 am, "johnzabro...@gmail.com" <johnzabro...@gmail.com>
wrote:

> On Oct 23, 8:51 pm, Steven Woody <narkewo...@gmail.com> wrote:
>
> > Hi,
>
> > Is there possible to implement Signal/Slot pattern in C? I am
> > currently doing with an embedded project that use C only.
>
> > -
> > narke
>
> You would have to use the C preprocessor.

Is it a standalone tool? Instead of a part of compiler itself?

>
> See Miro Samek's book Practical Statecharts in C/C++ for tips on doing

Okay, I will find it and read some.

> OO in C.

johnza...@gmail.com

unread,
Nov 20, 2009, 5:14:26 PM11/20/09
to

It seems you are tripped up by not knowing what the C preprocessor
is. If you do not know this, then you likely do not know C. It is
possible that your C compiler may not offer the C preprocessor,
either, if it is for an embedded device.

0 new messages