Nick Ioffe wrote:
I declare public variables in module interface and then try to use them.
The problem is that while integer variables work perfectly all other kinds of variables (at least files and strings) don't work at all.
May somebody explain me what is going on? Why integer is defined ok, but string has problem?
It's a known problem:
: the capacity of strings declared in interfaces of modules is not : initialized (daj3.pas, sven14c.pas, nick1.pas)
Actually, it affects those types that require some automatic initialization which are schemata (including strings), files and objects.
It only happens with modules, not with units. I'll try to fix it when I get to it, but it's not trivial and will require some other cleaning up of the module mechanism ...
Frank