Results 1 to 6 of 6

Thread: overloading not recognized

  1. #1
    Join Date
    Feb 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default overloading not recognized

    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.

    Code:
    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.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    PascalScript does not support overload, only lape does.

  3. #3
    Join Date
    Feb 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Yeah it does.
    Why not just use lape?

  5. #5
    Join Date
    Feb 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  6. #6
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •