Topic: APLX Help : Help on APL language : System Methods : ⎕CLASSNAME Name of class
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

⎕CLASSNAME Name of class


Implemented for Internal, External and System classes.

Syntax:

    name ← objref.⎕CLASSNAME
    name ← classref.⎕CLASSNAME
    name ← ⎕CLASSNAME     (Within user-defined method, same as ⎕THIS.⎕CLASSNAME)

The niladic system method ⎕CLASSNAME returns the fully-qualified name of the class of an object, as a character vector. It can also be used with a class reference rather than an object reference:

      PT←⎕NEW Point
      PT.⎕CLASSNAME
Point
      ⎕DISPLAY PT.⎕CLASSNAME
┌→────┐
│Point│
└─────┘
      Point.⎕CLASSNAME
Point

If the class is an External or System class, the class name is preceded by the architecture name and a colon:

      DT←'.net' ⎕NEW 'System.DateTime' 2007 5 30
      DT
[.net:DateTime]
      DT.⎕CLASSNAME
.net:System.DateTime

Topic: APLX Help : Help on APL language : System Methods : ⎕CLASSNAME Name of class
[ Previous | Next | Contents | Index | APL Home ]