Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Copy Class Level Method for another Object...
Posts: n/a
Default Copy Class Level Method for another Object... - 02-20-2007, 03:45 PM


I have a class level method for an object. Is there anyway I can use that method for another object without re-writing the code?

Thanks / Regards
Reply With Quote
Posts: n/a
Default 02-20-2007, 11:34 PM

See the recently posted thread:

If you don't want to import the full object - or aren't working with multiple worlds - you can just create a method with the name you want and use the clipboard to copy code from one method to the other. However you do have to be careful that everything referenced in the copied code exists - either as part of the new object or elsewhere in the world - or the drop will fail (ususally not a problem if you're copying code only within one world).

Also, when you modify the code for the new object, you have to make sure that the full names of everything are correct - sometimes the differences between the names for the various parts of Alice objects are not obvious.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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