Well, no, probably not, but it seems more fair (and sane compiler-wise) to allow the syntax sugar for any string expression rather than only for select kinds of strings. And who knows, maybe somebody has some sort of convention planned for their code, like _____Render() + ______Update().
int SpriteCreate(string typename)
{
// MISSING CODE FOR FINDING HANDLES.
// Whatever, I'm trying to show a point.
sprite[i].typename = typename;
return i;
}
void SpriteUpdate(int i)
{
sprite[i].typename + "Update"(i);
}
void SpriteRender(int i)
{
sprite[i].typename + "Render"(i);
}
I feel it's more important to give flexibility to people even if it means "ugly code" could be written by some people.