News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Information Hiding

Started by cman, June 07, 2010, 07:25:07 PM

Previous topic - Next topic

cman

Is there a way to hide data declared in a .data section of a file from other files that include it? I know the "proc" directive has a visibility option , but can something of the same sort be done with data? Thanks for any info....

qWord

as long as not declaring variables explicit as external (EXTERNDEF), they are only visible in then current module.
FPU in a trice: SmplMath
It's that simple!

redskull

If you "include" the file, it is technically part of the same module, and there's not much you can do.  If you use seperately assembled modules, the information is "hidden" unless you use the externdef (thats good programming practice anyway  :naughty:)

-r
Strange women, lying in ponds, distributing swords, is no basis for a system of government