Last change
on this file since 820 was 750, checked in by イグトランス (egtra), 16 years ago |
BOOST_FOREACHを可能なものはVC++ 2005 for eachへ置換(やや速くなる)。
|
File size:
677 bytes
|
Rev | Line | |
---|
[322] | 1 | #include "stdafx.h"
|
---|
| 2 |
|
---|
[448] | 3 | bool Delegate::IsSimilar( const Delegate &dgt ) const
|
---|
| 4 | {
|
---|
| 5 | if( this->Params().Equals( dgt.Params(), true ) ) // パラメータが等しい、もしくは反変
|
---|
| 6 | {
|
---|
| 7 | if( this->returnType.Equals( dgt.returnType ) )
|
---|
| 8 | {
|
---|
| 9 | // 戻り値が等しい
|
---|
| 10 | return true;
|
---|
| 11 | }
|
---|
| 12 | else if( this->returnType.IsCovariant( dgt.returnType ) )
|
---|
| 13 | {
|
---|
| 14 | // 戻り値が共変
|
---|
| 15 | return true;
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 | return false;
|
---|
| 19 | }
|
---|
[637] | 20 |
|
---|
[640] | 21 | bool Delegate::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors )
|
---|
[637] | 22 | {
|
---|
[640] | 23 | Procedure::Resolve( resolver, resolveErrors );
|
---|
[639] | 24 |
|
---|
[750] | 25 | foreach( Parameter *pParameter, dynamicParams )
|
---|
[639] | 26 | {
|
---|
[640] | 27 | pParameter->Resolve( resolver, resolveErrors );
|
---|
[639] | 28 | }
|
---|
| 29 |
|
---|
[637] | 30 | return true;
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.