Index: TODO =================================================================== diff -u -r88e54fa5bb23eb546abf7f676afa03aa697ac813 -r062dd3cb76774853a767854e29f60a3325c4bd94 --- TODO (.../TODO) (revision 88e54fa5bb23eb546abf7f676afa03aa697ac813) +++ TODO (.../TODO) (revision 062dd3cb76774853a767854e29f60a3325c4bd94) @@ -4004,10 +4004,13 @@ Documentation: - added design study ruby-mixins.tcl to example-docs and regression test +- added documentation for "/obj/ info name" to migration guide and + .nxd file +- adding more comments to examples in migration guide ======================================================================== TODO: -- document "/obj/ info name" + - document "private property" - document new setable object properties perobjectdispatch and keepcallerself Index: doc/next-migration.html =================================================================== diff -u -r9f32dd2c379759ca82cf9b49dcc9c62af01f5cc8 -r062dd3cb76774853a767854e29f60a3325c4bd94 --- doc/next-migration.html (.../next-migration.html) (revision 9f32dd2c379759ca82cf9b49dcc9c62af01f5cc8) +++ doc/next-migration.html (.../next-migration.html) (revision 062dd3cb76774853a767854e29f60a3325c4bd94) @@ -3,7 +3,7 @@ - + Migration Guide for the the Next Scripting Language -
/obj/ info has type /sometype/
+
# Check if object is a subtype of some class
+/obj/ info has type /sometype/
@@ -5963,7 +5966,8 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
/obj/ info has mixin /cls/
+
# Check if object has the specified mixin registered
+/obj/ info has mixin /cls/
@@ -5989,7 +5993,8 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
/obj/ info is class
+
# Check if object is a class
+/obj/ info is class
@@ -6015,7 +6020,8 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
/obj/ info is metaclass
+
# Check if object is a metaclass
+/obj/ info is metaclass
@@ -6041,7 +6047,8 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
/obj/ info is baseclass
+
# Check if object is a baseclass of an object system
+/obj/ info is baseclass
@@ -6055,6 +6062,33 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} +
# n.a.
+
+
+
# Return name of object (without namespace prefix)
+/obj/ info name
+ + +
+
/obj/ object::exists /obj/
-
::nsf::object::exists /obj/
+
# Check for existence of object (nsf primitive)
+::nsf::object::exists /obj/
@@ -6915,7 +6950,7 @@ Index: doc/next-migration.txt =================================================================== diff -u -r9f32dd2c379759ca82cf9b49dcc9c62af01f5cc8 -r062dd3cb76774853a767854e29f60a3325c4bd94 --- doc/next-migration.txt (.../next-migration.txt) (revision 9f32dd2c379759ca82cf9b49dcc9c62af01f5cc8) +++ doc/next-migration.txt (.../next-migration.txt) (revision 062dd3cb76774853a767854e29f60a3325c4bd94) @@ -2593,6 +2593,7 @@ ---------------- |[source,tcl] ---------------- +# Check if object is a subtype of some class /obj/ info has type /sometype/ ---------------- |[source,tcl] @@ -2601,6 +2602,7 @@ ---------------- |[source,tcl] ---------------- +# Check if object has the specified mixin registered /obj/ info has mixin /cls/ ---------------- |[source,tcl] @@ -2609,6 +2611,7 @@ ---------------- |[source,tcl] ---------------- +# Check if object is a class /obj/ info is class ---------------- |[source,tcl] @@ -2617,6 +2620,7 @@ ---------------- |[source,tcl] ---------------- +# Check if object is a metaclass /obj/ info is metaclass ---------------- |[source,tcl] @@ -2625,14 +2629,25 @@ ---------------- |[source,tcl] ---------------- +# Check if object is a baseclass of an object system /obj/ info is baseclass ---------------- |[source,tcl] ---------------- +# n.a. +---------------- +|[source,tcl] +---------------- +# Return name of object (without namespace prefix) +/obj/ info name +---------------- +|[source,tcl] +---------------- /obj/ object::exists /obj/ ---------------- |[source,tcl] ---------------- +# Check for existence of object (nsf primitive) ::nsf::object::exists /obj/ ---------------- |====================== Index: library/nx/nx.nxd =================================================================== diff -u -r80bd7eaa6cbca737017a5502ed31c9889177e1ca -r062dd3cb76774853a767854e29f60a3325c4bd94 --- library/nx/nx.nxd (.../nx.nxd) (revision 80bd7eaa6cbca737017a5502ed31c9889177e1ca) +++ library/nx/nx.nxd (.../nx.nxd) (revision 062dd3cb76774853a767854e29f60a3325c4bd94) @@ -1374,7 +1374,6 @@ # @parameter objectkind Specifies the class test: '''class''', # '''baseclass''', '''metaclass''' - # @class.method {Object "info lookup filter"} # # Search for a method which is currently registered as a filter (in @@ -1517,6 +1516,11 @@ # @parameter pattern The pattern string in the style of '''string match''' +# @class.method {Object "info name"} +# +# Returns the name of an object without the namespace qualifiers. + + # @class.method {Object "info slot definition"} # # Report all <<@glspl slot>> defined for an object. The slots owned by