Re : Optimizing a loop

2011-07-19 Thread Mathieu Suen
When computing the string distance depending on the chosen algorithm you can exit the function earlier if the distance is becoming too high. An other possible way is to do some fuzzy string search: http://en.wikipedia.org/wiki/Fuzzy_string_searching HTH -- mathk - Message d'origine

Loading the Foundation at runtime

2011-01-24 Thread Mathieu Suen
Hi All, In other to write a binding for a language I need to load the Foundation framework at run time. So just to test I wrote a simple example: --objc-test.c-- #include objc/runtime.h #include stdio.h #include stdlib.h void onLoad (Class this, char* inCat) { printf