Data class should have documentation
This class is confusing without knowing where to lookup information. I've attached a patch that points developers to README.ext
I'm assigning this to zzak, hopefully if this is the wrong person to assign it to he can assign it to someone else.
#1 Updated by Matthew Mongeau about 1 year ago
I have a lack of experience with redmine. I don't see my patch attached, so just incase:
--- object.c (revision 39327)
+++ object.c (working copy)
@@ -3115,6 +3115,12 @@
rbcData = rbdefineclass("Data", rbcObject);
- * Document-class: Data
- * This is a recommended base class for use by C extensions using DataMakeStruct/DataWrapStruct, see README.EXT for details.
- */ + rbcTrueClass = rbdefineclass("TrueClass", rbcObject); rbdefinemethod(rbcTrueClass, "tos", truetos, 0); rbdefinealias(rbcTrueClass, "inspect", "tos");
#2 Updated by Zachary Scott about 1 year ago
- Status changed from Open to Closed
#4 Updated by Matthew Mongeau about 1 year ago
nobu (Nobuyoshi Nakada) wrote:
I've supposed removal of Data in Ruby level.
It's my understanding that a lot of people feel that way, might be worth deprecating because I'd be uncertain as to how many C extensions use this. I know ruby std-lib has it in curses, iconv, raddrinfo, stringio, tcltklib, and win32ole. The core has it in marshal, transcode, and error. I don't currently understand the functionality behind TypedDataMakeStruct and DataWrapStruct so I'm not sure how these libraries would be affected.