CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: C++ equivalence to Pascal WITH stmt (was Re: BCB sales, BORCO



--
C/C++ namespaces - a way of partitioning global linkage to prevent
    symbol pollution, for example in a multi-file project, global
    variable names may clash.

Pascal equivalent - none that I know of.
--

Pascal/Delphi sort of has an equivalent.  If I have two global variables name foo, one in file1 and the other in file2, I can access each individually by qualifying the one I want with the file name.

e.g.

file1.foo := 20;

file2.foo := 30;

This is true for consts, vars, types, and functions/procedures as well.


Mark

W Komornicki's Home Page | Main Index | Thread Index