mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Amend cast doc to account for dynamic class casts
This commit is contained in:
parent
c38f2c1deb
commit
ff6cf18364
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user