Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ARRAY member functions
#8
I want to keep exe small and therefore don't add many functions.
push and pop are really useful but can be easily replaced using code like this
Macro Macro1405
Code:
Copy      Help
ARRAY(int) a
int x=5
a[]=x ;;a.push(x)
x=a[a.ubound]; a.redim(a.ubound) ;;x=a.pop()
out x
out a.len

The others are rarely used. They don't require low-level programming (explicit memory allocation etc), therefore you can create user-defined functions to do it.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)