Using the Overload function

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
JohnGB
Posts: 183
Joined: 17 Feb 2013 18:59

Using the Overload function

#1 Post by JohnGB » 11 Jun 2013 16:30

According to the Help file Overload is supported - see extract from help below:

function function_name([var] [const] ParamName : [^]type; [var] [const] ParamName2, ParamName3 : [^]type) : [^]type; [ilevel 0x123;] [overload;] [forward;]

However, if I declare:

function BCDinc(BDCVal: byte):byte; Overload;

I get a syntax error on my declare line "Error: expected 'end' but 'overload' found".

As far as I can see this is a valid declaration.

I am using the latest version of the MikroPascal compiler.
JohnB
MikroPascal for PIC18 and DsPIC, Visual TFT

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Using the Overload function

#2 Post by marina.petrovic » 12 Jun 2013 09:35

Hi,

Unfortunately, "Overload" is not supported in mikroPascal compiler.

In compiler Help file we note like that,
because it is the generalized representation of the program organization in Pascal programming language.

Best regards,
Marina Petrovic

JohnGB
Posts: 183
Joined: 17 Feb 2013 18:59

Re: Using the Overload function

#3 Post by JohnGB » 12 Jun 2013 09:41

Wouldn't it be a good idea to state specifically in the help file that Overloading is not supported?
JohnB
MikroPascal for PIC18 and DsPIC, Visual TFT

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Using the Overload function

#4 Post by marina.petrovic » 13 Jun 2013 09:10

Hi,

You're right, it should be mentioned in Help file.

I notified our software developers and it will be corrected as soon as possible.

Best regards,
Marina

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”