[AD] [TODO] Accessor functions for global variables |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] [TODO] Accessor functions for global variables
- From: Aldo Nunez <crimson.magus@xxxxxxxxxx>
- Date: Tue, 24 May 2005 17:45:41 -0700
- Cc: crimson.magus@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=my4FrODel2Q+Y47eEblgKyhmCWh2nyRWxiO9zuBoX5nBuGQAytkfWnds/pDjecG1UbtXyzfaZcE+nNjfBdhYyf7oW1qn9xdQ/ardX0kz79Jm/HrlWulx4HylZLlFvMSsNzk1RFWboxyIVpi+bDT0CuDCDkz3opW7FuajBkH5MQM=
Hi,
A set of getter (and setter where appropriate) functions for global
variables such as "char key[]" and "BITMAP* screen" would be nice. The
reason is that there are some development environments where these are
not easily available. Here's one example:
The Digital Mars suite of compilers (C/C++/D) for Windows don't
support importing global variables from DLLs through import libraries.
To get around this, one has to either:
1. create an extra code file that dynamically loads the DLL and
provides the getter functions for the rest of the project, or
2. create a separate DLL that can link in a different environment
(e.g., MSVC) and so provide getters.
Aldo