Hacker News new | ask | show | jobs
by phs 1290 days ago
It seems to have been around unofficially for some time before that even. https://stackoverflow.com/q/7306004/580412
1 comments

> @nobu (Nobuyoshi Nakada) proposed Data, which used to be a class for extension library authors, but deprecated since ruby 2.5 and removed since 3.0. We might reuse it now.

https://bugs.ruby-lang.org/issues/16122

Ed:

https://ruby-doc.org/core-2.5.0/Data.html

> Data

> This is a deprecated class, base class for C extensions using Data_Make_Struct or Data_Wrap_Struct.

Vs

https://ruby-doc.org/core-2.4.0/Data.html

> Data

> This is a recommended base class for C extensions using Data_Make_Struct or Data_Wrap_Struct, see doc/extension.rdoc for details.