You are right!fxm wrote: Can you post a code example of using that '@UDT' which is not an instance?
I fell into this every 2 months... As suggested in the past, I probably would be happy with a syntax like [UDT] to play with the static version of the UDT.
However, I dont understand. Look well at the example below. I can not catch a non static stuff designed by THIS, but I can do this with the alias UDT in the case of the constructor, that hides THIS inside!
How then to access the destructor or other functions (instance , not the statics), since they all rely in THIS to be named ?
Code: Select all
type UDT
declare constructor()
declare destructor()
declare static sub S()
declare sub T()
as integer x
end type
constructor UDT()
var r = @UDT
var v = @UDT.S
'
var u = @THIS.constructor() ''??
var u = @THIS.destructor() ''??
var w = @THIS.S ''?
end constructor
destructor UDT()
'
end destructor
sub UDT.S()
'
end sub
sub UDT.T()
'
end sub
? @UDT
? @UDT.S
var u = @UDT
var v = @UDT.S