comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Best way to share 'enum' between various functions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Best way to share 'enum' between various functions [message #77789] Sat, 24 September 2011 01:24 Go to previous message
Robin Wilson is currently offline  Robin Wilson
Messages: 40
Registered: August 2010
Member
Hi all,

I have a number of constant definitions that I'm using to do what an
enum would do in other languages:

MARITIME = 1
CLOUD = 2
URBAN = 3
...

I want these definitions to be available to a lot of different functions
and procedures (all in different files) in my code - they are used a lot
in IF statements and various assignments.

Obviously I don't want to replicate the definitions in loads of
different files, as if I ever change them (or add extra ones) then it
will get *very* confusing.

What's the best way to do this?

Cheers,

Robin

------------------
Robin Wilson
A PhD student studying complexity in remote sensing
www.rtwilson.com/academic
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Strange behavior of POLYFILL
Next Topic: map_set issue

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 08:02:40 PDT 2025

Total time taken to generate the page: 1.28129 seconds