1 Jul 1996 19:48
Re: Lettre de Caml #4
Laurent Chéno <cheno <at> micronet.fr>
1996-07-01 17:48:15 GMT
1996-07-01 17:48:15 GMT
> Hello everybody,
>
> I would like to correct the formula page 3 in the "Lettre de Caml" #4 :
>
> we read :
>
> for each k in {0,..,m-1} t_{i+k} = s_{i}
>
> the right formula is :
>
> for each k in {0,..,m-1} t_{k} = s_{i+k}
>
> t is the motif: i+m<n.
> string_length s returns n
> and string-length t returns m.
>
>-- Younes El Amrani.
(excuse my very poor english, thank's)
I apologize. I have miswritten t for s... but the Caml programs run well :
I have tried all !
Best regards, Laurent Cheno
.
I think this is impossible. In general event driven programming, you
can not define values in callback functions and export them out of the
functions.
let g = fun t -> t
in
menu__add_command m [Label "Essai"; Command (let t = f(n))];
...;
g t
Of course it is wrong syntax. But even if it were correct, the value
RSS Feed