mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-12 17:54:26 +02:00
Amend cast doc to account for dynamic class casts
This commit is contained in:
@@ -83,7 +83,7 @@ void main(string[] args) {
|
|||||||
// (implicit casts)
|
// (implicit casts)
|
||||||
float f = float:5;
|
float f = float:5;
|
||||||
float f2 = 5; // would also work
|
float f2 = 5; // would also work
|
||||||
// casts that require throwing away information -
|
// casts that require throwing away information or complicated computation -
|
||||||
// those must always be done explicitly
|
// those must always be done explicitly
|
||||||
// (conversion casts)
|
// (conversion casts)
|
||||||
int i = int:f;
|
int i = int:f;
|
||||||
|
Reference in New Issue
Block a user