mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-14 10:45:06 +02:00
Fix small syntax bug
This commit is contained in:
@@ -223,7 +223,7 @@ void main(string[] args) {
|
|||||||
void writeS() { writeln "$s"; }
|
void writeS() { writeln "$s"; }
|
||||||
}
|
}
|
||||||
C cc = new C;
|
C cc = new C;
|
||||||
// c is a *reference* to C. Classes are always references.
|
// cc is a *reference* to C. Classes are always references.
|
||||||
cc.a = 5; // Always used for property access.
|
cc.a = 5; // Always used for property access.
|
||||||
auto ccp = &cc;
|
auto ccp = &cc;
|
||||||
(*ccp).a = 6;
|
(*ccp).a = 6;
|
||||||
|
Reference in New Issue
Block a user