alice-teacher Primitive and Object Types

Donald Slater dslater at andrew.cmu.edu
Mon Jul 22 14:01:06 EDT 2024


There are no primitive types in Alice. Alice uses the Java Wrapper classes so that all values are objects. Alice also uses synonyms, hopefully more descriptive, names for these wrapper classes, as in

	WholeNumber -> Integer
	DecimalNUmber -> Double
	TextString -> String

Although it does not come up frequently, if I understand your question correctly, objects created in Scene mode are referred to as objects “managed by the scene editor” and objects created in code are referred to as “unmanaged" properties and variables. These properties and variables are not just the wrapper types, but also Gallery Models and other objects available in the Alice System (events, etc.)

Let me know if you have any other questions.

All the best,
Don Slater

For the Alice Project

> On Jul 20, 2024, at 12:22 PM, Barnum, William via alice-teachers <alice-teachers at lists.andrew.cmu.edu> wrote:
> 
> Are there any primitive types in Alice (e.g., int or boolean in Java), or is everything an object type?
> 
> Is there any different vocabulary when discussing object types that are initialized in code (e.g., WholeNumber or TextString) versus object types that are created in the Scene Mode (e.g., Bear or Eagle)?
> 
> Thanks,
> Bill
> 
> This e-mail message contains information that may be confidential and is the property of the Board of Education of Elmhurst Community Unit School District 205.  It is intended only for the person(s) to whom it is addressed.  If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof.  If you have received this message in error, please notify the sender immediately and delete all copies of this message.  Any communication sent or received by District 205 is a public record and may be subject to inspection or copying under the Illinois Freedom of Information Act (FOIA). _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20240722/1a9691b2/attachment.html>


More information about the alice-teachers mailing list