Skip to content
Prev 35123 / 63424 Next

PROTECT and OCaml GC.

Guillaume Yziquel a ?crit :
Replacing findfun by findvar works in this specific case. See below.

Could someone explain why findfun works while findvar doesn't? I've been 
looking at the source code in envir.c, and it isn't really clear why one 
way works while the other doesn't.

Is it possible, given a variable/function name, to determine if it 
should use findFun or findVar? This would be helpful for the polymorphic 
static typing of R values.
findFun works.
findVar doesn't.
All the best,