jit.gen compilation errors (1102 and 396)

JMC's icon

Hello,

I've got some compilation problems with jit.gen:
1) I try to make a for loop into an array (vec in gen) using swiz, but it doesn't compile :
gen_domain: jit.gen: [string "gen2.Module"]:1102: attempt to index local 'constants' (a nil value)
maybe it is not possible to use swiz like this in a for loop; is there another way to do that? (see first jit.gen in the patch below).

2)another exemple with compilation error, I really dont understand why it doesn't work (2nd jit.gen in the patch below):
gen_domain: jit.gen: [string "gen2.jit.Model"]:396: assertion failed!

Does someone have a explanation or a trick to do such stuff?

Max Patch
Copy patch and select New From Clipboard in Max.

Jean-Michel

Andrew Pask's icon

Hi,

Thanks for the report - this is in fact a bug in jit.gen and it has been ticketed for engineering attention

Sorry for the inconvenience

Cheers
-A