Hello,
this trivial code
one = 1 : route(1,1,1,1);
process = route(1,1,1,one);
doesn't compile. Why? Shouldn't compiler evaluate the
ls1/ls2/lsr trees ?
The change below helps, but of course it is not a proper fix.
Oleg.
--- a/compiler/signals/signals.cpp
+++ b/compiler/signals/signals.cpp
@@ -950,13 +950,14 @@ bool verySimple(Tree exp)
* Convert a list of signals (representing numbers) into a vector of ints
* the result is true if the conversion was possible.
*/
+extern Tree simplify(Tree sig);
bool sigList2vecInt(Tree ls, vector<int>& v)
{
int i;
double x;
while (!isNil(ls)) {
- Tree s = hd(ls);
+ Tree s = simplify(hd(ls));
ls = tl(ls);
if (isSigInt(s, &i)) {
v.push_back(i);
_______________________________________________
Faudiostream-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel