> What I assume you are saying is helper is some Nim source program that will
> produce the output that gemPGparameters does. The expression you give will
> then execute helper at run time and provide its results to const parameters
> at its compile time. Is this interpretation correct?
I'm trying to understand what you are suggesting with your response, especially
because what I ultimately want to do in this instance I will want to do with
other bigger generators.
What I assume you are saying is `helper` is some Nim source program that will
produce the output that
Don't run it at compile-time? Use a helper program and read in the result via
`const parameters = parseInt(staticExec("nim c -r helper"))`
The code below works, but when I try to run it using P17 the compiler throws an
error about the `gcd` proc. Using P17 causes `gcd` to be called on the order of
250,000 times, as `modpg = 510510`
Here's the code.
# Create constant parameters for chosen PG at compile time
proc