Ignore:
Timestamp:
Nov 20, 2007, 12:04:07 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

例外クラスの実装。ExceptionTestでSystem.Exceptionを使用するようにした。
StringBuilderでコメント化されていた例外を投げる処理を有効にした(除OutOfMemory)。
Str$の実装にSPrintfなどを使用するようにした。
毎回Object.ReferenceEquals(xxx, Nothing)と打つのが面倒なので、IsNothingを導入。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/ActiveBasic/Strings/Strings.ab

    r383 r385  
    9595    ChrCmp = ChrCmp(s1, s2, System.Math.Min(size1, size2))
    9696    If ChrCmp = 0 Then
    97         ChrCmp = ( size1 - size2 ) As Long
     97        ChrCmp = (( size1 - size2 ) As LONG_PTR) As Long
    9898    End If
    9999End Function
     
    102102    ChrCmp = ChrCmp(s1, s2, System.Math.Min(size1, size2))
    103103    If ChrCmp = 0 Then
    104         ChrCmp = ( size1 - size2 ) As Long
     104        ChrCmp = (( size1 - size2 ) As LONG_PTR) As Long
    105105    End If
    106106End Function
Note: See TracChangeset for help on using the changeset viewer.