![]() | ![]() | ![]() | Type-inference by yourself | Documentation and user's manual | Table of contents | OCaml programs |
|
All the following Caml expressions are syntactically correct.
Consider each of them.
Has it a value?
If it has a value then which one and of which type?
Else why?
|
|
All the following Caml phrases are syntactically correct.
They are assumed to be evaluated in order.
Consider each of them.
Is it a value definition let ... = e or an expression e?
Has e a value?
If it has a value then which one and of which type?
Else why?
|
|
Consider each of the following types.
Write a value having this types (naming it is useless), evaluate it, then apply it:
|
|
Write values named f and g in such a manner that the following expression has a value:
|
|
All the following Caml phrases are syntactically correct.
They are assumed to be evaluated in order (those in the left column being evaluated first).
Consider each of them.
Is it a value definition let ... = e or an expression e?
Has e a value?
If it has a value then which one and of which type?
Else why?
|
|
Same question.
|
![]() | ![]() | ![]() | Type-inference by yourself | Documentation and user's manual | Table of contents | OCaml programs |