Taoufik Dachraoui
2/7/2016 6:41:00 PM
Hi
I would like to find a way to instruct CCL to convert ratios automatically as follows
if I define a variable x to be of type (ratio 1/n n/1) and set x to y than I want x to
equal to a/b such that 1<= a <= n, 1 <= b <= n and a/b is the closest to y
how to implement this in ClozureCL?
One way is to when the new value of x is not of the correct type then call a callback
functions that do the conversion; but is it possible to define a callback function
that CCL calls whenever there a type exception?
Kind regards
Taoufik