github.com/remobjects/goldbaselibrary@v0.0.0-20230924164425-d458680a936b/Source/Gold/Aliases.pas (about) 1 namespace go.builtin; 2 3 type 4 int = public RemObjects.Elements.System.Int64; 5 uint = public RemObjects.Elements.System.UInt64; 6 int8 = public RemObjects.Elements.System.SByte; 7 uint8 = public RemObjects.Elements.System.Byte; 8 byte = public RemObjects.Elements.System.Byte; 9 int16 = public RemObjects.Elements.System.Int16; 10 uint16 = public RemObjects.Elements.System.UInt16; 11 {$IF NOT JAVA} 12 uintptr = public RemObjects.Elements.System.NativeUInt; 13 intptr = public RemObjects.Elements.System.NativeInt; 14 {$ENDIF} 15 16 [AliasSemantics] 17 int64 = public partial record 18 public 19 Value: RemObjects.Elements.System.Int64; 20 constructor; empty; 21 constructor(aValue: RemObjects.Elements.System.Int64); begin Value := aValue; end; 22 end; 23 24 [AliasSemantics] 25 uint64 = public partial record 26 public 27 Value: RemObjects.Elements.System.UInt64; 28 constructor; empty; 29 constructor(aValue: RemObjects.Elements.System.UInt64); begin Value := aValue; end; 30 end; 31 32 int32 = public RemObjects.Elements.System.Int32; 33 uint32 = public RemObjects.Elements.System.UInt32; 34 float32 = public Single; 35 float64 = public Double; 36 bool = public Boolean; 37 38 [AliasSemantics] 39 rune = public partial record 40 public 41 Value: Integer; 42 constructor; empty; 43 constructor(aValue: Integer); begin Value := aValue; end; 44 end; 45 46 PlatformString = {$IF COOPER}java.lang.String{$ELSE}System.String{$ENDIF}; 47 48 //{$IF NOT NEWSTRING} 49 //string = public RemObjects.Elements.System.String; 50 //{$ENDIF} 51 52 {$IF NOT COOPER} 53 method print(params x: array of Object); 54 begin 55 go.fmt.Print(x); 56 end; 57 58 method println(params x: array of Object); 59 begin 60 go.fmt.Println(x); 61 end; 62 {$ENDIF} 63 64 end.