mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +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)
|
||||
float f = float:5;
|
||||
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
|
||||
// (conversion casts)
|
||||
int i = int:f;
|
||||
|
Loading…
Reference in New Issue
Block a user