Closed ivocavalcante closed 5 years ago
Describe the bug Code below used to work, now it doesn't. Is it by design? Seems most internal "let" can't see outside block definitions.
Curv Program
let dummy = 1; in let b = a; in b; where ( a = sphere; )
Expected behavior A simple sphere drawn on Viewer window. Getting this instead:
ERROR: a: not defined b = a; ^
System Information (please complete the following information):
curv
curv --version
Curv: 0.2-381-g8d2cda2-dirty Compiler: gcc 7.3.0 Kernel: Linux 4.15.0-42-generic x86_64 GPU: X.Org, AMD CAPE VERDE (DRM 2.50.0 / 4.15.0-42-generic, LLVM 6.0.0) OpenGL: 3.0 Mesa 18.0.5
Thanks for reporting this. Fixed.
Thanks Doug, you're the one! Was really worried about having to change my previous code (and had no idea how to do that).
Describe the bug Code below used to work, now it doesn't. Is it by design? Seems most internal "let" can't see outside block definitions.
Curv Program
Expected behavior A simple sphere drawn on Viewer window. Getting this instead:
System Information (please complete the following information):
curv
command using a remote viewing protocol like VNC or NX? Nocurv
command inside a VM? Nocurv --version
and paste the output here.