Talk:Source (Property)
From Legacy Roblox Wiki
Jump to navigationJump to search
It actually IS called a protected string. That is the reason it's not in the Object Browser. Can I revert the edit to say protected string again? --Blocco|Userpage-Talkpage 21:11, 27 August 2010 (UTC)
- Wait a second, there is a Data Type called "protected-string", and the developers didn't just edit the __index, and __newindex functions within the metatable of the Script userdata? --Camoy 21:18, 27 August 2010 (UTC)
Well... then it is the developer's fault for calling it that, because it isn't a data type. --Camoy 21:58, 27 August 2010 (UTC)
- Enum isn't a data type either, but we call it one, right? --Blocco|Userpage-Talkpage 22:05, 27 August 2010 (UTC)
- Enums are used EVERYWHERE, we have to. --Camoy 22:16, 27 August 2010 (UTC)
- But are they a real data type? --Blocco|Userpage-Talkpage 22:18, 27 August 2010 (UTC)
- Now that I think about it... Vector3, Vector2, UDim, UDim2, CFrame, Ray, none of them are actual "data types", just userdatas. I don't think that we should even consider protected-string a data type, or anything similar, it doesn't really exist.--Camoy 22:21, 27 August 2010 (UTC)
- The other differentiation is in XML definitions, I believe it calls it a 'ProtectedString' instead of a 'String', or at least it used to. BlueTaslem 01:18, 10 January 2011 (UTC)
- Now that I think about it... Vector3, Vector2, UDim, UDim2, CFrame, Ray, none of them are actual "data types", just userdatas. I don't think that we should even consider protected-string a data type, or anything similar, it doesn't really exist.--Camoy 22:21, 27 August 2010 (UTC)
- But are they a real data type? --Blocco|Userpage-Talkpage 22:18, 27 August 2010 (UTC)
- Enums are used EVERYWHERE, we have to. --Camoy 22:16, 27 August 2010 (UTC)
Difference is, you can do local x = Object.UDim2Value</syntaxhighlight>, but not
local x = Object.ProtectedStringValue</syntaxhighlight>