ROBOTC.net forums
http://www.robotc.net/forums/

Message Log when Function Overloading
http://www.robotc.net/forums/viewtopic.php?f=11&t=19559
Page 1 of 1

Author:  jtkiesel [ Wed Mar 15, 2017 9:27 pm ]
Post subject:  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?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/