On Fri, 2009-03-27 at 10:45 +0100, Nicolas Pouillard wrote:
> That was indeed the intended behavior, to get a larger scope for 'a'
> use this syntax:
>
> <:expr<
> do {
> let a = "foo"; (* <--- semicolon here *)
> print_endline a;
> print_endline a
> }
> >>
Thank you
Excerpts from Andre Nathan's message of Fri Mar 27 05:42:34 +0100 2009:
> Hello
>
> I've found the following difference of behavior between OCaml 3.10 and
> 3.11. The code below
>
> <:expr<
> do {
> let a = "foo" in
> print_endline a;
> print_endline a
> }
> >>
>
>
Hello
I've found the following difference of behavior between OCaml 3.10 and
3.11. The code below
<:expr<
do {
let a = "foo" in
print_endline a;
print_endline a
}
>>
when run through camlp4o becomes, in 3.10,
let a = "foo" in (print_endline a; print_endline a)
w