Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
Casting question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Anton Shepelev, post: 14234358"] Arne Vajhoj: Thanks. Your usage is correct from the standard's viewpoint, but intuitively I understand casting as looking at the same thing from a different view- point. In this way, one can cast pointers and thereby view the addressed memory as containing one or another sturcture. This implies no conversion, no processing, and does not take even a single CPU instruction. Standard authors were forced to use the same term for type conversion because in C# it shares its syn- tax with casting proper, although I should prefer Pascal's approach, i.e.: int i; byte b = 4; i = int(b); I think it would save a lot of confusion. [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
Casting question
Top