If the builtin strings internally should be treated as objects then we're talking about a much bigger change in terms of necessary code change and compatibility (consider e.g. the use of runtime types and the svalue struct).
Although it isn't designwise as beautiful, I think it's both simpler and more efficient to just tag objects that want to interface as strings, e.g. through inheriting a magic String class which would act mainly as a flag.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-01-30 18:07: Subject: Re: OpenSSL wrapper vs Pike's SSL (Was: Bz2)
If the string stuff is reorganized, would it make sense to have some base class that implements a non-shared (perhaps even mutable) string, and have the vanilla pike string type inherit that and do the sharing stuff?
/ Niels Möller ()