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, that is not a real data type, but it is described by ROBLOX as protected-string. --Blocco|Userpage-Talkpage 21:20, 27 August 2010 (UTC)
And where does ROBLOX "describe" it as a protected string? --Camoy 21:25, 27 August 2010 (UTC)
The error when trying to index Source and in the Object Browser, it doesn't show Source because it's not called a string by Roblox. --Blocco|Userpage-Talkpage 21:39, 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)

Difference is, you can do local x = Object.UDim2Value</syntaxhighlight>, but not local x = Object.ProtectedStringValue</syntaxhighlight>

16:35, 28 August 2010 (UTC)