Talk:Data Types

From Legacy Roblox Wiki
Jump to navigationJump to search

Why would Vector2 and Vector3 be related at all? UDim2 is composed of 2 UDim values (X and Y). BrickColor has a Color3 property (Color). But Vector3 does not contain a Vector2 and Vector2 definately does not contain a Vector3. --GoldenUrg 22:15, 30 May 2010 (UTC)

I don't see any need to place these into a hierarchy. Vector3 is a basic object used for a lot of functions independent of CFrame. Nor do we need to explain CFrame here. --GoldenUrg 05:20, 31 May 2010 (UTC)

Since when is the rotational matrix on the data type list. Its a component of CFrame, not its separate data type. I vote to remove it from the list since it is already explained on the CFrame page. --Camoy 12:04, 31 May 2010 (UTC)
Is the nesting supposed to show composition, or inheritance? Only I'd say that Vector3s are derived from Vector2s, whereas UDim2s are composed from two UDims.
14:27, 31 May 2010 (UTC)
I think it's supposed to show composition. --Blocco|Userpage-Talkpage 14:49, 31 May 2010 (UTC)
I first put them like that because they're somewhat related :P You guys are thinking way too much into it. Vector3s are not derived from Vector2s. A Vector2 is a Vector3 without the Z component. That's seriously it. Same UDim and UDim2.
It's not the same as UDim2. UDim2 actually contains 2 UDim type objects. Why not just make the list flat? Does having 2 items indented help anyone with understanding these terms? --GoldenUrg 02:54, 1 June 2010 (UTC)
Additionally, Rotation Matrix is not a data type, and should not be present. I'll take it out. ---Mr Doom Bringer 17:37, 31 May 2010 (UTC)
Is Content a data type? --Blocco|Userpage-Talkpage 01:52, 24 June 2010 (UTC)
Also, where would Userdata go as a data type? It definitely is one. --Blocco|Userpage-Talkpage 23:33, 29 June 2010 (UTC)
Actually, none of the Vectors, Colors, UDims, or anything like that are really datatypes. They are all pseudo-data types, made completely from userdatas. Maybe make another page called Roblox data types, but none of those belong on the data types page. The only Lua data types are:
  • number
  • string
  • boolean
  • table
  • function
  • thread
  • userdata
Hope that clears up some confusion. --Mattchewy (talk) 02:28, 30 June 2010 (UTC)
I hope we all know the basics. But I think that it makes sense for these to be here (the Class Reference page would be the next logical choice). They aren't Lua data types but that doesn't make them not data types. userdata should be mentioned in the description for the multiple data type section and probably also on the Common_Scripting_Mistakes --GoldenUrg 02:34, 30 June 2010 (UTC)
Shouldn't there be another page named "Roblox Data Types", which links from here? --Mattchewy (talk) 02:44, 30 June 2010 (UTC)

Organization

Does anyone else think that this page would be better organized as follows:

  • Lua Instrinsics
  • ROBLOX Userdatas

Currently table is thrown in with a bunch of ROBLOX specific things. Maybe it'd be better to seperate the two categories into two different pages... Opinions?

EDIT: Scripting#Types lists things like I suggested above, so shouldn't this page as well?

NecroBumpist (Writer) Discuss my contributions at my talk page.02:06, 16 April 2012 (UTC)
Yes. It'd be way better if they were distinguished. --JulienDethurens 23:44, 15 April 2012 (EDT)