Skip to content

metaclass

miscellaneous · scripts/miscellaneous/metaclass.m

: mc = metaclass (obj)

Return a meta.class reflection object for the class of obj.

The result exposes Name, MethodList, PropertyList, EventList, and SuperclassList. Each MethodList element is a meta.method with Name, InputNames, and OutputNames.

Pure M-file implementation (with +meta classdefs) that shadows the engine builtin when present on the path.