Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Clarion 6: Threading issues with files in methods - 2 2003-01-21 -- Alexey Solovjev Hello,
> does this means we can have no files declared anymore in class methods ?
No. Class methods are normal procedures just with slightly another syntax,
one predefined parameter. But up to 2 methods per class are special:
constructor and destructor. They are invoking automatically when an
instance they called for is created or to be destroyed.
The common rule is that code can't assume any specific state of data that
has not been initialized yet. This is true for any code and any kind of
data, not for FILEs within constructor. For example, one can write following
code
=====
A CLASS,TYPE
Construct PROCEDURE
....
END
B CLASS,TYPE
Construct PROCEDURE
....
END
InstA A
InstB B
....
A.Construct PROCEDURE
CODE
Today is November 21, 2024, 3:45 am This article has been viewed 35332 times. Google search has resulted in 7 hits on this article since January 25, 2004.
|
|