Search found 2 matches
- Mon Dec 12, 2016 7:19 pm
- Forum: Object Oriented Programming
- Topic: Access to workspace )vars within a class?
- Replies: 1
- Views: 20324
Access to workspace )vars within a class?
How would one reference a var defined in the workspace within a class? For example, suppose I have a list of items, as enclosed character arrays, which I want to reference within a class: myList←('apple' 'banana' 'cherry' 'date') ⍝ myList shows up in )vars then in my class (e.g. ○FruitCake ) ... ∇z←i ...
- Wed Sep 14, 2011 6:08 pm
- Forum: Object Oriented Programming
- Topic: Operator overloading
- Replies: 2
- Views: 36750
Operator overloading
I'm not exactly a "newbie" but I've been away from APL for about 15 years now and am looking into the new OOP APL capabilities. One of the features of OOP in c++ and some other languages is providing methods that determine how class objects behave under primitive operations. For example, if I have a ...