Changeset 214 for Include/Classes
- Timestamp:
- Apr 15, 2007, 1:55:46 AM (18 years ago)
- Location:
- Include/Classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Object.ab
r212 r214 67 67 End Sub 68 68 69 Function GetType() As TypeInfo69 Virtual Function GetType() As TypeInfo 70 70 Return typeInfo 71 71 End Function -
Include/Classes/System/TypeInfo.ab
r207 r214 13 13 Sub ~TypeInfo() 14 14 End Sub 15 16 Override Function GetType() As TypeInfo 17 Return _System_TypeBase.selfTypeInfo 18 End Function 15 19 16 20 … … 162 166 Class _System_TypeForClass 163 167 Inherits TypeBaseImpl 164 Public 168 169 Public 170 referenceOffsets As *Long 171 numOfReference As Long 172 173 Sub _System_TypeForClass( strNamespace As String, name As String, referenceOffsets As *Long, numOfReference As Long ) 174 TypeBaseImpl( strNamespace, name ) 175 176 This.referenceOffsets = referenceOffsets 177 This.numOfReference = numOfReference 178 End Sub 165 179 Sub _System_TypeForClass( strNamespace As String, name As String ) 166 180 TypeBaseImpl( strNamespace, name ) … … 168 182 Sub ~_System_TypeForClass() 169 183 End Sub 184 170 185 Override Function IsClass() As Boolean 171 186 Return True … … 225 240 226 241 '例: 227 'Add( New _System_TypeForClass( "System", "String" ) )242 'Add( New _System_TypeForClass( "System", "String", [__offsets...], __numOfOffsets ) ) 228 243 'Search( "String" ).SetBaseType( Search( "Object" ) ) 229 244 End Sub … … 242 257 InitializeUserTypes() 243 258 259 selfTypeInfo = _System_TypeBase.Search( "System", "TypeInfo" ) As TypeInfo 244 260 245 261 OutputDebugString( Ex"ready dynamic meta datas!\r\n" ) … … 251 267 252 268 Static Function Search( strNamespace As LPSTR, typeName As LPSTR ) As TypeBaseImpl 253 254 269 ' TODO: 名前空間に対応する 255 270 Dim i As Long … … 267 282 End Function 268 283 284 Static selfTypeInfo = Nothing As TypeInfo 285 269 286 End Class 270 287 -
Include/Classes/index.ab
r58 r214 1 1 ' コンパイルに最低限必要なファイル 2 2 3 ' System4 3 #require "System\index.ab" 5 6 ' System.Thread 4 #require "System\Diagnostics\index.ab" 7 5 #require "System\Threading\index.ab"
Note:
See TracChangeset
for help on using the changeset viewer.