View unanswered posts | View active topics It is currently Sat Dec 16, 2017 4:42 pm






Reply to topic  [ 1 post ] 
Message Log when Function Overloading 
Author Message
Rookie

Joined: Fri Jun 10, 2016 12:24 am
Posts: 1
Post Message Log when Function Overloading
The following program compiles silently:
Code:
void func(int *p) {
}

void func(float *p) {
}

task main() {
}


This program also compiles, but causes the Message Log to pop up:
Code:
typedef struct {
   int x;
} One;

typedef struct {
   float x;
} Two;

void func(One *p) {
}

void func(Two *p) {
}

task main() {
}


The text in the Message Log is:
Quote:
Function Menus: Multiple overloaded intrinsic declarations for 'func' in 'BuiltInVariables.txt'
'func(Two * p)' and
'func(One * p)'.
Function Menus: Multiple overloaded intrinsic declarations for 'func' in 'BuiltInVariables.txt'
'func(One * p)' and
'func(Two * p)'.
Function Menus: Multiple overloaded intrinsic declarations for 'func' in 'BuiltInVariables.txt'
'func(Two * p)' and
'func(One * p)'.


Any particular reason for the messages given for the second program? Is there any temporary way to prevent this Message Log from popping up every time a program such as this is compiled?


Wed Mar 15, 2017 9:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.