Casting

The compiler needs to know how manage a block of memory (imagine the vars
like memory blocks).
Following the datatype, the compiler can make some operations by this
datatype.

So, you can say to the compiler, take this memory block (var), and use it
like a Integer.

(new_data_type)memory_block say to the compiler that can use the operations
to new_data_type with memory_block, for example, you can sum two integers.

If you sum a integer and a double, the compiler needs make some
considerations before make the operation (precision lost, and anothers)

You can not sum strings, you can concatenate strings (the compiler really
call a routine), and a big etc.




-- 
--------------------------------------------------------
picture blog : http://ageo.deviantart.com/journal/


[Non-text portions of this message have been removed]

Reply via email to