Re: a proposal featuring a bug

From: Wolfgang Lux <>
Date: Mon, 11 Dec 2006 11:59:11 +0100

Bernd Brassel wrote:

> Wolfgang lux once proposed a function "clone" in this mailing list.

And I also noted that such a function has a dubious semantics. I
it only as means to implement encapsulated search with strong
on top of MCC's weak encapsulation (and in fact MCC's implementation
of the
AllSolutions module uses this trick).

> This
> was essentially the function you would need to use Sergio's scheme and
> get the result you want. And the kics compiler, which release is
> soon to
> be announced here, has a mode in which free variables are implemented
> this very same way.

You mean that
   let y = 0?1; f _ = y + y in f 0
   let y = 0?1; f _ x = x + x in f 0 y
are evaluated differently (the former having solutions 0, 1, and 2 and
the latter having only solutions 0 and 2)? If so, have you carefully
consider the semantics of this feature? E.g., what are the solutions of
   let y = 0?1; f x = x + y in f y


curry mailing list
Received on Mo Dez 11 2006 - 12:32:29 CET

This archive was generated by hypermail 2.3.0 : Do Jun 20 2024 - 07:15:08 CEST