ŒMIXINS Return list of mixins


Implemented for Internal classes only.

Syntax:

    mixin_refs „ objref.ŒMIXINS
    mixin_refs „ ŒMIXINS     (Within user-defined method, same as ŒTHIS.ŒMIXINS)

The system method ŒMIXINS returns a vector of references to any mixins which have been added to an object using ŒMIXIN, in the order in which they were added:

      a„Œnew class1
      a.Œmixin class2
      a.Œmixins
[class2]
      '.net' a.Œmixin 'DateTime' 2004 5 6
      a.Œmixins
[class2] [.net:DateTime]
      ½a.Œmixins
2

If there are no mixins for the object, it returns an empty vector.

The references returned by ŒMIXIN can typically be used to access methods or properties specific to the mixin. For example, if a method in the main class has the same name as a method in a mixin, the reference can be used to access the version in the mixin:

      a.Œmixins[2].Œclassname
.net:System.DateTime
      a.Œclassname
class1

See the section on Mixins for more information.


Topic: APLX Help : Help on APL language : System Methods : ŒMIXINS Return list of mixins
[ Previous | Next | Contents | Index ]