Variables -
11-01-2012, 10:35 AM
Alice 3.1 is designed to support the transition to Java, and therefore follows the Java rules on scope. This means that you can create a variable/property in the Scene class, and all other methods of the Scene class may see that variable, but if you have an alien object in your scene, and create a procedure for the alien, it cannot see the scene variable, because it is part of the scene class. We have not yet implemented a public modifier, which exists in Java. Also, a variable/property for the alien, or in an alien procedure cannot be seen by the scene.
I hope that this helps.
Don Slater
Alice Team
Carnegie Mellon University
|