You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unit test2_lib;
interfacevar
fn:String[80];
implementationend.
//uses test2_lib;
procedureproc();
var
l:byte;
begin
l:=length(fn);
end;
begin
fn:='ATARI RULEZ!';
proc();
end.
The error occurs regardless of whether the variable is called from a procedure or in the main block.
There is a similar effect with the constants declared in the library, which are used e.g. in the assembler code, although here, one could suppose that it is supposed to be so. Simply, the labels from the main namespace of the library, do not get the equivalent in the main namespace of the program using it Sent As in ASM I can still refer to the namespace of the library, but using test2_lib.fn does not give this effect
The text was updated successfully, but these errors were encountered:
The following code should compile smoothly.
The error occurs regardless of whether the variable is called from a procedure or in the main block.
There is a similar effect with the constants declared in the library, which are used e.g. in the assembler code, although here, one could suppose that it is supposed to be so. Simply, the labels from the main namespace of the library, do not get the equivalent in the main namespace of the program using it Sent As in ASM I can still refer to the namespace of the library, but using test2_lib.fn does not give this effect
The text was updated successfully, but these errors were encountered: