Nope, the string is user-entered. I don't serialize it out at all. And since the template may be based on a primitive type I can't even spec out that the user defined class have certain functions.
I suppose I could create a string-specific version of the template, but trusting whoever uses the template to use it right may be a bit over-hopeful. Templates don't seem to offer any way to switch on the type they use, do they?
Main Topics
Browse All Topics





by: jkrPosted on 2008-02-07 at 10:05:21ID: 20843189
What about escaping the spaces upon saving (or replacing them with e.g. an underscore)? .... just playing with ideas...