A programming language where values โ€‹โ€‹and objects are different

I'm trying to get started with Programming Elements by Alex Stepanov and Paul McJones. In the last paragraph: They say

"This book uses a programming language that cannot describe values โ€‹โ€‹and value types as separate from objects and object types."

I mean, can anyone give an example of a programming language where you can describe the values โ€‹โ€‹as a separate object from the object.

+7
source share
1 answer

It looks like they refer to value types and link types. Similar tp text in this Wikipedia entry ( http://en.wikipedia.org/wiki/Object_type_ (object-oriented_programming) )

Some object-oriented programming languages โ€‹โ€‹distinguish between references and value types, often called objects and non-objects on platforms where there are no complex value types, such as execution efficiency and syntax or semantic problems. For example, Java has primitive wrapper classes corresponding to each primitive type: Integer and int, Character and char, Float and float, Languages โ€‹โ€‹like C ++ have little or no reference type concept; thus, using an object type is of little interest.

C # has both reference and value types: http://msdn.microsoft.com/en-us/library/4d43ts61 (v = vs .90) .aspx

+2
source

All Articles