11-03-2005, 09:28 AM
You cannot add member functions to ARRAY, but you can add member functions to a class containing an ARRAY.
Example:
Member function CStrStack.Push:
Member function CStrStack.Pop:
Example:
;define simple string stack class
class CStrStack -ARRAY(str)a
;examples
CStrStack st
st.Push("abc")
str s
st.Pop(s)
out s
st.Pop(s) ;;error
Member function CStrStack.Push:
Member function CStrStack.Pop: