https://bugzilla.wikimedia.org/show_bug.cgi?id=20275
--- Comment #15 from Max Semenik <[email protected]> 2009-08-29 21:38:30 UTC --- Created an attachment (id=6502) --> (https://bugzilla.wikimedia.org/attachment.cgi?id=6502) Sample patch using idea by Mr.Z-man I like Alex's idea, here is an example of its implementation. I used different names for constants. It still has some problems though - even after replacement of switch statement with ifs using === I'm still afraid of possible problems when someone calls the function with an int parameter intended to be used as a string. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
