set vs. setf

Posted By: fsgi

set vs. setf - 05/10/20 20:12

Dear people,

Can anybody explain me whether it will be possible in future Zorro versions to clean up a bit the syntax? For instance: why do we need to set some Variables with
Code
set
and others with
Code
setf
? I know that the second is a macro, but this is probably just a convenience for the language coders... wouldn't it be possible to improve the underlying implementation for sake of cleanlyness?

Thank you in advance and sorry if this question sounds dumb.
Posted By: jcl

Re: set vs. setf - 05/11/20 08:58

No, unfortunately not. set and setf must be different. set() is for global flags, while setf() works on a particular variable.
Posted By: fsgi

Re: set vs. setf - 05/11/20 16:46

Thank you so much for the clear (even though sad) answer.
© 2024 lite-C Forums