 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tales Aguiar Guest
|
Posted: Wed Jun 22, 2005 8:33 pm Post subject: #pragma obsolete not fully work |
|
|
In this sample, the 'ObsoleteFuncion', marked with #pragma obsolete, show
warning only if the method is called inside amother method of same class.
Bug? Or I made something wrong?
class Teste
{
public:
void ObsoleteFunction();
#pragma obsolete ObsoleteFunction
void CallObsolete();
};
void AmotherFunction()
{
Teste A;
A.ObsoleteFunction(); // do not show warning
}
void Teste::CallObsolete()
{
ObsoleteFunction(); // warning
}
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Wed Jun 22, 2005 9:44 pm Post subject: Re: #pragma obsolete not fully work |
|
|
A pragma is not a member item.
Your pragma declared a global function, essentially ::ObsoleteFunction, to
be obsolete but your complaint is that it did not declare a class member
function to be obsolete.
.. Ed
| Quote: | Tales Aguiar wrote in message
news:42b9cb39 (AT) newsgroups (DOT) borland.com...
In this sample, the 'ObsoleteFuncion', marked with #pragma obsolete, show
warning only if the method is called inside amother method of same class.
Bug? Or I made something wrong?
class Teste
{
public:
void ObsoleteFunction();
#pragma obsolete ObsoleteFunction
void CallObsolete();
};
void AmotherFunction()
{
Teste A;
A.ObsoleteFunction(); // do not show warning
}
void Teste::CallObsolete()
{
ObsoleteFunction(); // warning
}
|
|
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum
|
|