Skip to Content.
Sympa Menu

patterns-discussion - RE: [patterns-discussion] how to implement design patterns using clanguage

patterns-discussion AT lists.siebelschool.illinois.edu

Subject: General talk about software patterns

List archive

RE: [patterns-discussion] how to implement design patterns using clanguage


Chronological Thread 
  • From: "MATHUS Baptiste" <mathus.b AT mipih.fr>
  • To: <patterns-discussion AT cs.uiuc.edu>
  • Subject: RE: [patterns-discussion] how to implement design patterns using clanguage
  • Date: Wed, 3 May 2006 12:14:28 +0200
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/patterns-discussion>
  • List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>

Hi,

Well, I'd recommend you having a look at how the graphical toolkit GTK do it.
It's mainly written in pure C and is said to be object-oriented
architectured, so maybe you could
learn from it. http://www.gtk.org/

Second, for example, I grabbed it on google :
http://www.accu.org/acornsig/public/articles/oop_c.html
(http://www.google.com/search?q=C+object-oriented). I seem to remember one of
the main principle used in object-oriented C is to declare structures
containing data, and pointers to your functions (i.e. methods).

Obviously, I think you'll miss real encapsulation, 'cause you there's no
visibility level that you can
set in C. But that's already a good start.

Hope this helps.

@++
Baptiste

> -----Message d'origine-----
> De :
> patterns-discussion-bounces AT cs.uiuc.edu
>
> [mailto:patterns-discussion-bounces AT cs.uiuc.edu]De
> la part de
> Li Xinyi
> Envoyé : vendredi 28 avril 2006 04:15
> À :
> patterns-discussion AT cs.uiuc.edu
> Objet : [patterns-discussion] how to implement design patterns using
> clanguage
>
>
> Hi, guys
>
> I am new to design patterns, and just start to learn it by picking up the
> book, head first design patterns.
> I worked for an embedded software company. Unfortuantely here I dont have
> any object oriented programming language > available.
> I am wondering, is there any resource explaining how to implement the
> design patterns using c language.
>
> Best Regards,
> Ryan




  • RE: [patterns-discussion] how to implement design patterns using clanguage, MATHUS Baptiste, 05/03/2006

Archive powered by MHonArc 2.6.16.

Top of Page