Re: [AD] Proposed changes for Allegro 5 (6?) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Shawn Hargreaves wrote:
> If the address is not a pointer type, this makes it far more
> obvious that it must be accessed in a special way, so people
> are more likely to produce correct and portable code.
But it is not portable to assume that you can store a pointer in a long:
they can even have different sizeof()'s. Can't we do something like:
typedef void *al_video_memory_pointer;
This will not be dereferencable without a cast, and will also have a
more descriptive name.
--
Sven Sandberg svsa1977@xxxxxxxxxx home.student.uu.se/svsa1977