Last change
on this file since 268 was 255, checked in by dai, 18 years ago |
System.Int32 / System.UInt32(両方共にBlittable型)を試験導入した。
|
File size:
570 bytes
|
Line | |
---|
1 | Namespace System
|
---|
2 | Class Blittable(Long) Int32
|
---|
3 | value As Long
|
---|
4 | Public
|
---|
5 | Static Function MaxValue() As Long
|
---|
6 | Return 2147483647
|
---|
7 | End Function
|
---|
8 | Static Function MinValue() As Long
|
---|
9 | Return -2147483648
|
---|
10 | End Function
|
---|
11 |
|
---|
12 | Sub Int32( value As Long )
|
---|
13 | This.value = value
|
---|
14 | End Sub
|
---|
15 |
|
---|
16 | Override Function ToString() As String
|
---|
17 | Return Str$(value)
|
---|
18 | End Function
|
---|
19 |
|
---|
20 | Function Operator() As Long
|
---|
21 | Return value
|
---|
22 | End Function
|
---|
23 |
|
---|
24 | Static Function _Create( value As Long ) As Int32
|
---|
25 | Return New Int32( value )
|
---|
26 | End Function
|
---|
27 | End Class
|
---|
28 | End Namespace
|
---|
Note:
See
TracBrowser
for help on using the repository browser.