Question
Yone Moreno · Oct 13, 2019

What is inside a Package.Class and s not property, nor method nor parameter?

I  am reading the following code in ObjectScript:

GitHub repository
 

And there is a sentence which I am facing difficulties to understand:

    kill ^OPNLib.Game.CWLF(..World)

I know that kill removes variables, OPNLib.Game are the package and subpackage, and ..World is a property. However what does CWLF mean?

You could think that it is the class' name, but it is:

Class OPNLib.Game.ConwayLifeGame Extends %Persistent

The class name is ConwayLifeGame

Is CWLF an alias for the class name?

If yes where is it defined?

Because if we see all the definitions in the current class, we do not found CWLF:

 

I have also tried to find more information in the Intersystems documentation, however I did not get results.

Could you help me?

Thanks.

0
0 159
Discussion (2)1
Log in or sign up to continue

As I see from code

^OPNLib.Game.CWLF
   

is just a Global variable to maintain the actual state of the display structured by Worlds and Display lines.
And it rebuilds the image in cyles.

It has nothing to do with the class definition but is an independent structure.
So you just see it in various methods.