Revision history for ProPgTypeObjects


Revision [22215]

Last edited on 2018-02-10 22:21:39 by JeffMarshall [added members]
Additions:
'' guide to syntax.
'' used in passed parameters. For simplicity
'' Memory Allocation/Deallocation
declare operator new ( byval size as uinteger ) as any ptr
declare operator new[] ( byval size as uinteger ) as any ptr
declare operator delete ( byval buf as any ptr )
declare operator delete[] ( byval buf as any ptr )
declare operator &= ( byref rhs as DataType )
declare constructor ()
declare constructor ( byref rhs as T )
declare constructor ( byref rhs as DataType )
declare destructor ()
declare function f ( ) as DataType
declare function f ( byref arg1 as DataType ) as DataType
declare sub s ( )
declare sub s ( byref arg1 as T )
declare sub s ( byref arg1 as DataType )
'' Iterator
declare operator for ()
declare operator step ()
declare operator next ( byref cond as T ) as integer
declare operator for ( byref stp as T )
declare operator step ( byref stp as T )
declare operator next ( byref cond as T, byref stp as T ) as integer
declare operator & ( byref lhs as T, byref rhs as DataType ) as DataType
declare operator abs ( byref arg as UDT ) as double
declare operator fix ( byref arg as UDT ) as double
declare operator frac ( byref arg as UDT ) as double
declare operator int ( byref arg as UDT ) as double
declare operator sgn ( byref arg as UDT ) as double
operator T.new ( byval size as uinteger ) as any ptr
operator = allocate( size )

operator T.new[] ( byval size as uinteger ) as any ptr
operator = allocate( size )
operator T.delete ( byval buf as any ptr )
deallocate buf
operator T.delete[] ( byval buf as any ptr )
deallocate buf
operator T.&= ( byref rhs as DataType )
dim tmp as string
tmp &= str( rhs )
constructor T ()
'' default constructor
constructor T ( byref rhs as T )
'' copy constructor
constructor T ( byref rhs as DataType )
'' custom constructor
destructor T ()
operator & ( byref lhs as T, byref rhs as DataType ) as DataType
return val(lhs.value & rhs)
operator abs ( byref arg as UDT ) as double
return abs(arg.value)
operator fix ( byref arg as UDT ) as double
return fix(arg.value)
operator frac ( byref arg as UDT ) as double
return frac(arg.value)
operator int ( byref arg as UDT ) as double
return int(arg.value)
operator sgn ( byref arg as UDT ) as double
return sgn(arg.value)
function T.f ( ) as DataType
function T.f ( byref arg1 as DataType ) as DataType
sub T.s ( )
sub T.s ( byref arg1 as T )
sub T.s ( byref arg1 as DataType )
operator T.for ()
operator T.step ()
operator T.next ( byref cond as T ) as integer
return 0
operator T.for ( byref stp as T )
end operator
operator T.step ( byref stp as T )
operator T.next ( byref cond as T, byref stp as T ) as integer
return 0
Deletions:
'' demonstration and guide.
'' used in pass parameters. For simplicity
declare constructor()
declare constructor( byref rhs as T )
declare constructor( byref rhs as DataType )
declare destructor()
declare function f( ) as DataType
declare function f( byref arg1 as DataType ) as DataType
declare sub s( )
declare sub s( byref arg1 as T )
declare sub s( byref arg1 as DataType )
constructor T()
constructor T( byref rhs as T )
constructor T( byref rhs as DataType )
destructor T()
function T.f( ) as DataType
function T.f( byref arg1 as DataType ) as DataType
sub T.s( )
sub T.s( byref arg1 as T )
sub T.s( byref arg1 as DataType )


Revision [22024]

Edited on 2017-11-21 01:27:28 by JeffMarshall [backlink]
Additions:
{{fbdoc item="back" value="CatPgProgrammer|Programmer's Guide"}}


Revision [20664]

Edited on 2016-02-10 16:13:34 by DkLwikki [Update link format]
Additions:
- ##[[KeyPgType|Type]]##
Deletions:
- ##[[KeyPgType Type]]##


Revision [12132]

The oldest known version of this page was created on 2008-01-05 14:42:26 by ElSairon [Update link format]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode