Last change
on this file since 581 was 581, checked in by dai_9181, 16 years ago |
DelegateクラスのLexicalAnalyzerクラスへの依存性をなくした。
|
File size:
431 bytes
|
Rev | Line | |
---|
[322] | 1 | #include "stdafx.h"
|
---|
| 2 |
|
---|
| 3 | #include <Delegate.h>
|
---|
| 4 |
|
---|
[448] | 5 | bool Delegate::IsSimilar( const Delegate &dgt ) const
|
---|
| 6 | {
|
---|
| 7 | if( this->Params().Equals( dgt.Params(), true ) ) // パラメータが等しい、もしくは反変
|
---|
| 8 | {
|
---|
| 9 | if( this->returnType.Equals( dgt.returnType ) )
|
---|
| 10 | {
|
---|
| 11 | // 戻り値が等しい
|
---|
| 12 | return true;
|
---|
| 13 | }
|
---|
| 14 | else if( this->returnType.IsCovariant( dgt.returnType ) )
|
---|
| 15 | {
|
---|
| 16 | // 戻り値が共変
|
---|
| 17 | return true;
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | return false;
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.