SRL Archive - General Botting Help

overloading not recognized


kuze

2015-02-22 20:28:43

I'm trying to overload the following two functions, but I get a compilation errors saying: "Duplicate Identifiers…" When I change the name of one of the functions, it runs smoothly.

function SS_slotFull(slot: Integer): Boolean;
begin
...
end;

function SS_slotFull(inv: TBoxArray; slot: Integer): Boolean; overload;
begin
...
end;

I'm using the Pascal Interpreter. Does the pascal interpreter not support overloading or something? Any help will be appreciated.

riwu

2015-02-22 20:30:05

PascalScript does not support overload, only lape does.

kuze

2015-02-22 20:34:23

Does PascalScript support forward declaration or is that also a no-no?

riwu

2015-02-22 20:38:29

Yeah it does.
Why not just use lape?

kuze

2015-02-22 20:48:47

I need to import code written for PascalScript. Will lape cause any compatibility issues?

riwu

2015-02-22 21:30:12

Only minor fixes like adding semicolons and some slight name changes would be required