LavishScript:Discussing

From Lavish Software Wiki
Jump to navigation Jump to search

Data Types

When describing usage of a datatype and its members or methods, as opposed to having a specific Top-Level Object to discuss, the name of the data type in its original lower-case form is used. This is because TLOs are usually capitalized, and this is how to differentiate between talking about string, the data type, and String, the TLO. Additionally, most TLOs, including String, use an index, making it incorrect to describe String.Arg. It would be correct to describe string.Arg or String[].Arg.

Accessing Members
  • type.Member
  • type.Member[index]
Accessing Methods
  • type:Method
  • type:Method[index]

Top-Level Objects

When discussing Top-Level Objects, the resulting data types and their members or methods, it is prudent to to remember that a Top-Level Object is just a way to access a given object of a given data type. Top-Level Objects do not have members! Thus, you only want to describe a TLO when you must describe a specific object, rather than something that affects all of a given type of object. If you want to describe something that affects all of a given data type, discuss the actual data type instead.

When describing usage of a Top-Level Object, the name of the TLO in its original capitalized form is used. This is because data types are usually all lower-case, and this is how to differentiate between talking about string, the data type, and String, the TLO. Additionally, most TLOs, including String, use an index, making it incorrect to describe String.Arg. It would be correct to describe string.Arg or String[].Arg.

A single object
  • Object
  • Object[index]
Accessing Members
  • type.Member
  • type.Member[index]
Accessing Methods
  • type:Method
  • type:Method[index]

See Also