I noticed that declaring a Sub named Constructor fires an error message as follows
But, if you did actually no't declare the constructor, you will be told that:error 4
duplicated definition, found 'constructor' ...
(if you call the routine member named constructor that you are told is defined)error 18
element not defined
If we extends from OBJECT all turns correct however.
Code to play with to understand fully this (small) issue:
Code: Select all
type T ' extends OBJECT
declare sub constructor()
as integer ii
end type
dim tt as T
tt.constructor()
Thanks!