Am 9. Oktober 2023 18:22:11 MESZ schrieb Alexandre Torres Porres <porres@gmail.com>:
>
>*var.c:80:22: **error: **assigning to 'float' from incompatible type
>'t_float *'*
Well it's just what it says: you are trying to assign a `t_float*` value to a `t_float`.
A `t_float` is some floating type, and it is not allowed to use it to store a pointer.
Ok, your comment already did shed some light. And looking closely, the [value] code actually uses *x_floatstar ... so let me get this straight, that makes it a pointer then, so it works. Now, I'm also using the same thing to create an array of values, that can be set with something like x->x_fval[i]. This is where things get confusing to me. Now, in an earlier version, this was working and initialized as **x_fval which then it seems it is a pointer to the array of values?
Another good question would be simple online courses that could help me understand things a little better :)
thanks
What's the question?
mfg.sfg.jfd
IOhannes
_______________________________________________
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev