convex icon indicating copy to clipboard operation
convex copied to clipboard

Can't compile callable functions

Open Darkneew opened this issue 3 years ago • 1 comments

compile doesn't compile properly functions when they are called As a result, the code can't be run or eval

Here is an exemple: Capture d’écran 2022-08-03 144803

Darkneew avatar Aug 03 '22 06:08 Darkneew

Interesting find.

It think this is correct behaviour. printx doesn't exist in your current account so it won't get resolved properly in the eval.

I think the problem is that a Symbol is being printed in unquoted form in your compiled source, i.e. the correct version should be more like:

(#50/call #50/a1 0 'printx))

We should probably check how convex-web is printing such forms but I'm not sure if there is a way to make this fully intuitive that works in all cases.

mikera avatar Aug 22 '22 15:08 mikera