Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 835 Bytes

i.8.3-locations.md

File metadata and controls

5 lines (3 loc) · 835 Bytes

I.8.3 Locations

Values are stored in locations. A location can hold only one value at a time. All locations are typed. The type of the location embodies the requirements that shall be met by values that are stored in the location. Examples of locations are local variables and parameters.

More importantly, the type of the location specifies the restrictions on usage of any value that is loaded from that location. For example, a location can hold values of potentially many exact types as long as all of the types are assignable-to the type of the location (see below). All values loaded from a location are treated as if they are of the type of the location. Only operations valid for the type of the location can be invoked even if the exact type of the value stored in the location is capable of additional operations.