11-03-2005, 08:54 AM
I tried to create the functions: insert, pop, push, reverse and
Warning: ARRAY cannot have member functions
is it normal?
Warning: ARRAY cannot have member functions
is it normal?
|
ARRAY member functions
|
|
11-03-2005, 08:54 AM
I tried to create the functions: insert, pop, push, reverse and
Warning: ARRAY cannot have member functions is it normal?
11-03-2005, 09:02 AM
Yes. I should remove this limitation, but it will require much time.
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: ;define simple string stack classMember function CStrStack.Push: Member function CStrStack.Pop:
11-03-2005, 09:42 AM
Ok. Thanks.
07-24-2008, 09:15 AM
Can you add the functions: insert, pop, push, reverse to arrays in the next QM version?
07-24-2008, 02:00 PM
I'll try, thank you.
06-03-2010, 04:10 PM
Can you add the functions: pop, push, reverse, diff... to arrays in the next QM version?
http://php.net/manual/en/ref.array.php
06-04-2010, 06:02 AM
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 ARRAY(int) aThe 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.
04-10-2013, 01:04 AM
It would be nice to have other ARRAY functions.
Member function ARRAY.unique functionMacro Remove duplicates |
|
« Next Oldest | Next Newest »
|