I think it would be great to have printf in freefem. Syntax is shorter (and I believe easier to read) and better fits to the overall style of the freefem code.
ofstream do the job?
output << a1 << " "
<< a2 << " "
You can try to do this!
Yes does the job. But as I mentioned printf is more concise and convenient than long c++ style. Compare your minimal example with something like printf(output,"%f %f\n",a1,a2);
Well, if it is not very complicated I can try!
Can you point me to an example (the simplest) of interfacing with some C code in freefem?
I’m curious as well to see how to define variadic functions in FreeFEM DSL.
no problem see function like
I have build a small starting exemple
mv printf.cpp.edp in printf.cpp ff-c++ printf.cpp FreeFem++ printf.edp
Thanks Frederic for preparing this. I’ll try