On 21.12.2010, at 23:34, [email protected] wrote: > On 21/12/10 19:27, Domingo Alvarez Duarte wrote: > >> This patch adds simple macro capability to the extra code lines in fluid: >> >> [email protected]_data = @name; >> >> If an extra code line starts with "=" then the "=" will be removed and any >> occurrence of "@name" will be replaced by the widget name entered and every >> occurrence of "@class" will be replaced by the classname (default or user >> entered). >> >> Supposing the above line on an "Fl_Input" with a name of "age" will be >> converted to: >> >> db_vat_rates.Fl_Input.user_data = age; > > Oh - not sure I like that syntax, but the idea is very interesting...
Same thought here. I'd lean more toward shell scripting syntax like "$(class)" because it is more familiar (to me, admittedly), and it allows adding text right after the variable name. Also, $$ would have to generate a single $. BTW, is the $ sign used anywhere in C++? Computer says "no" (grep \\$ src/*.cxx). Cough. So it would be a nice candidate. @ is not used in C++, but objective C. - Matthias _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
