Compile-Time Strings

April 28, 2009 @ 23:19 | In CodeGems, Programming | 6 Comments | del.icio.us digg devbump rss

It would be nice if we had such a feature in the C language, wouldn’t it? The term ‘compile-time string’ is referred here as strings that are converted to unique integer identifiers at compile time. At run-time those identifiers are simple integers that can be compared and hashed very fast. In other languages, like for example Smalltalk, the concept of Symbol implements a similar idea. The following post describes a possible implementation of this feature in C/C++.

Click to read the full article »



Sat, 07 Nov 2009 17:59:18 +0100 / 19 queries. 1.422 seconds / 5 Users Online

gentoo link wordpress link apache link PHP link

Theme modified from Pool theme. Valid XHTML and CSS