Is there a built-in way to convert a string to an operator like + or - ?
I get the feeling support for it isn't there but it's worth a try...

Recommended Answers

All 2 Replies

Not really, what are you trying to do?

You cannot use a string like "MyString" for an operator.
But suppose you like to make a class to handle Maya dates . (Hot topic, this october I believe...:D ) Then you could write an overload of the + operator to add two Maya dates together.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.