Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to cleanly encode "quasi-constants"?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-06-26 (10:09)
From: Remi VANICAT <remi.vanicat@l...>
Subject: Re: How to cleanly encode "quasi-constants"?
Daniel de Rauglaudre <> writes:

> I am not sure I understand your point, but the construction "let var =
> ..." does not define *compile time* constants: the expression "..." is
> computed at *run time*. It can be any computation.

I have a question about this : is there a way to make easily a compile
time constants?
(if i have a let var = func constant_argument, and i know that this
can't change from an execution to an other, i want it to be evaluated
only once)

Rémi Vanicat