Skip to main content
gamedev.net
🔒 Locked

Odd Syntax OK?

Started by droz Sep 18, 2010 at 6:34 PM 1 replies 950+ views
Original Post
droz
droz
Do you plan to support the following syntax or is it a bug?
int Size = "This is a string".Size();


You can access any of the string classes members using the above syntax. I'm just curious if you want this to be supported or if it's something that will be removed in the future.

Thanks,
Jeremy
_orm_
_orm_
Just so you know, Python supports the same thing.
WitchLord
WitchLord
I don't see a reason to remove it, though it is not an official feature either, so I can't guarantee it will always work for future versions.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.