Re: alternate to global variables
From: Tom (nospam_at_nospam.com)
Date: 09/16/04
- Next message: assaarpa: "Re: google "top coder" contest = stacked against C++ coders"
- Previous message: Alex Vinokur: "Re: google "top coder" contest = stacked against C++ coders"
- In reply to: Alwyn: "Re: alternate to global variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Sep 2004 13:42:07 GMT
Interesting. I'm going to give that a try.
Thanks!
Tom
Alwyn wrote:
> In article <LmZ1d.2459$mb6.1335@newsread3.news.atl.earthlink.net>, Tom
> <nospam@nospam.com> wrote:
>
>>While this has always worked for me, and I assume is a common solution,
>>I've always wondered if there is an alternative. I'm required to always
>>use C, never C++. Is there a better, safer way to share data across
>>functions?
>
>
> You can use an opaque data type like the one in:
> <http://www.csd.uwo.ca/%7ejamie/C/encapsulatedC.html>
>
>
> Alwyn
- Next message: assaarpa: "Re: google "top coder" contest = stacked against C++ coders"
- Previous message: Alex Vinokur: "Re: google "top coder" contest = stacked against C++ coders"
- In reply to: Alwyn: "Re: alternate to global variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]