Special variables: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 2,232:
 
=={{header|Wren}}==
Wren has two special variables ''this'' and ''super''. These can only beWhen used in a constructor or instance method of a class. ''this'' refers to the current instance and ''super'' refers to a super-class whose constructor or (typically overridden) method you wish to invoke. Here's an example.
<syntaxhighlight lang="ecmascriptwren">class Parent {
construct new(name) {
_name = name
Line 2,261:
My name is John and my parent's name is Fred.
</pre>
 
=={{header|Z80 Assembly}}==
It's somewhat debatable whether processor registers count as "variables," since they don't have a location in the address space but their contents can change. Excluding those for now, there are a few memory locations that have special meaning:
9,476

edits