Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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 December 3, 2024, 11:33 am This article has been viewed 35343 times. Google search has resulted in 7 hits on this article since January 25, 2004.
|
|