wiki:Orange25/C++CamelCase

Version 1 (modified by marko, 3 years ago) (diff)

C++ underscores vs. camelCase

The names of attributes and methods in C++ classes have been modified to underscore form (Value.var_type instead of Value.varType). Class names are in CamelCase (e.g. BayesClassifier). Names of functions within the module, e.g. orange.getClassDistributions are still in mixedCase.

Old names still work, except for referencing of unbound methods. E.g.

v = orange.EnumVariable(); v.getExisting()

is OK, but

orange.EnumVariable.getExisting()

is not. Former is uncommon, but needs to be found and modified manually.

For refactoring, mapping of names can be found in source/orange/aliases.txt, source/_underscored and source/_underscored_manual.