[Kde-bindings] snake_case method name in rbuic4

airh2002 airh2002 at oak.dti.ne.jp
Thu Jul 2 14:53:01 UTC 2009


In current method names generated by rbuic4 are:
setupUi
setup_ui
retranslateUi
retranslate_ui

camelCase methods are default method definition, and snake_case methods
are only re-calling camelCase's ones.

I guess setup_ui makes default definition, and camelCase is defined by
Ruby's "alias". There are 3 reasons.
1) snake_case is more ruby-ish.
2) Stack depth of Ruby's "alias" is same to original one, but method
re-calling is stack depth +1.
3) Related to 2), error messages (if program fails) are more easy to
read if alias because stack depth is same to original one.

These are small patches for rbwriteinitialization.cpp and uic.cpp

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: svn_rbwriteinitialization.cpp.diff
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090702/af3acac9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: svn_uic.cpp.diff
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090702/af3acac9/attachment-0001.ksh>


More information about the Kde-bindings mailing list