Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Questions and Comments (http://www.alice.org/community/forumdisplay.php?f=9)
-   -   Conditional Statements (http://www.alice.org/community/showthread.php?t=11176)

HoffmanFarmsTx 06-19-2015 01:33 PM

Conditional Statements
 
Was either easier than expected or because I struggled through the Einstein formula assignment I am getting better.

I created a method in my object, but not sure I really needed to. I think I could have created the statement in the world first method with the same result.

MrMoke 06-19-2015 03:53 PM

It Depends on Scope
 
If the new method is restricted to the specific Object and makes no reference to either the World or other objects, then it could be put into the object with no problem.
If you want to save the new object into your custom objects folder and use it another world, but it contains methods with references to other objects in the current world, then those methods will cause problems unless the other objects are also loaded.

[QUOTE=HoffmanFarmsTx;56430]Was either easier than expected or because I struggled through the Einstein formula assignment I am getting better.

I created a method in my object, but not sure I really needed to. I think I could have created the statement in the world first method with the same result.[/QUOTE]

cmachua 06-22-2015 10:21 PM

I think with our assignment, either way will work and I agree that the Einstein formula lab helped quite a bit with this assignment. The course is really getting more into programming and Alice is making it so much easier to grasp programming.


All times are GMT -5. The time now is 04:10 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.