Table.clear should be documented

In this page, table.clear should be documented: table | Documentation - Roblox Creator Hub

table.clear is a relatively new addition to the table library added on release 456 (https://developer.roblox.com/en-us/resources/release-note/Release-Notes-for-456) but it isn’t documented anywhere. It should be.

6 Likes

Could this be because table.clear has not actually been released?

It is released. It’s live in studio and in-game. The release notes page tends to be out-of-date.

4 Likes

Odd and interesting, I checked Tables and it isn’t found in here either, and it was 3 releases ago, so I don’t see why it couldn’t be there?

A slip in the system I say, and it does say that table.clear is still pending.

Release notes have many released features still marked as ‘Pending’, and this appears to be another case of that.

example:
https://developer.roblox.com/en-us/resources/release-note/Release-Notes-for-376
TweenService:GetValue works now, and has worked for a long time, yet the release notes still say ‘Pending’.

If you try using table.create it will work without error, as expected.

local t = {1}
table.clear(t)
print(t[1]) --> nil

Yes, but maybe it’s pending for a reason, such as maybe certain data isn’t released with it yet.

Hey! Thanks for this report. I’ve just logged it, and the team will get to it when they can. :slight_smile:

5 Likes

I’ve added table.clear to the page, which should update soon. Thanks for reporting it to the team!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.