Excellent, thank yousrod wrote:Consider it done!
A OOP class for implementing stacks -massively upgraded
Update : 22nd November 2007.
Have added a new method, namely; Peek().
This allows you to examine an element from a stack without affecting the stack at all; that is no kind of 'pop' action is performed.
Note that the index supplied to this method is zero-based and thus must be a value within the range 0 to NumberOfElementsPushed()-1 etc.
The user manual has been updated.
Please see the first post for the download.
@Foz : my apologies for not adding the Peek() method sooner. It took eesau to beat me over the head a little before I could see the use for such a function!
Have added a new method, namely; Peek().
This allows you to examine an element from a stack without affecting the stack at all; that is no kind of 'pop' action is performed.
Note that the index supplied to this method is zero-based and thus must be a value within the range 0 to NumberOfElementsPushed()-1 etc.
The user manual has been updated.
Please see the first post for the download.
@Foz : my apologies for not adding the Peek() method sooner. It took eesau to beat me over the head a little before I could see the use for such a function!
I may look like a mule, but I'm not a complete ass.
Re: A OOP class for implementing stacks -massively upgraded
Please tell me this file is backed up somewhere?
The link is offline (as well as the site by the looks of it).. Any chance of obtaining a copy?
Thanks!
The link is offline (as well as the site by the looks of it).. Any chance of obtaining a copy?
Thanks!
Thanks!
Re: A OOP class for implementing stacks -massively upgraded
I'll endeavour to get the nxSoftware site back up over the weekend which should reinstate the relevant link. 
Last edited by srod on Fri Mar 30, 2012 8:14 pm, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
Re: A OOP class for implementing stacks -massively upgraded
Here's a link that will be good until srod gets the link fixed, or for at least 2 weeks if he dawdles.Env wrote:Please tell me this file is backed up somewhere?
The link is offline (as well as the site by the looks of it).. Any chance of obtaining a copy?
Last edited by Demivec on Fri Mar 30, 2012 9:22 pm, edited 1 time in total.
Re: A OOP class for implementing stacks -massively upgraded
Maybe an update of the demo code also?
In the stackClass.pbi include, gives an error:
In the stackClass.pbi include, gives an error:
Code: Select all
Procedure StructuredStackClass_Pop(*this._membersStackClass, ptrStructure=0)
gives an error "Declair doesn't match with real Procedure'
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.


