We have previously discussed on this list changing some macros, like isPUNCT(), in handy.h to use table lookup for speed. The table should go in perl.h. I have written a little script that generates the table; I propose to put the script in the Porting directory. Once debugged, the table would not need to change except in the very rare event of adding a new macro that would make use of it. The script could be written to generate a .h that would be included in perl.h. Or it could be written so that its output would be saved and perl.h edited by hand to use it. (It could even interpolate its result into perl.h directly, though I don't think that's a good idea.) Given the rarity of needing to change the table, I'm inclined to think the manual change is the way to go to avoid needless complexity. Are there contrary opinions?Thread Next