Dimitrios Apostolou wrote: > Hello list, > > as my fractal-drawing program was not working for a long time, after digging > deeper and deeper I discovered a bug in ucomplex.h. Actually the cln() > implementation is wrong, which I noticed after comparing to other source code > available on the web. I attach the patch fixing it.
Applied, thx. > > Given the chance, I would like also to ask some things about this unit. It is > not documented or even mentioned anywhere, so it was pretty hard to find it > in the first place. So is this unit considered an official part of fpc? It is else it wouldn't be in the distro ;) I guess more documenting it was forgotten so far. Fill a bug report and I assign it to Michael :) > > Moreover, why are functions named in a C-like manner (cpow, cmod, csin)? > Since > we have function overloading, wouldn't it be nicer if they were named after > math's unit functions (power, abs, sin)? Cross unit overloading wasn't available when this unit was written though I consider it a little bit dangerous in this case. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
