A OOP class for implementing stacks -massively upgraded

Share your advanced PureBasic knowledge/code with the community.
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Post by eesau »

srod wrote:Consider it done! :wink:
Excellent, thank you :)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

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!
I may look like a mule, but I'm not a complete ass.
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: A OOP class for implementing stacks -massively upgraded

Post by Env »

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!
Thanks!
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: A OOP class for implementing stacks -massively upgraded

Post by srod »

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.
User avatar
Demivec
Addict
Addict
Posts: 4270
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: A OOP class for implementing stacks -massively upgraded

Post by Demivec »

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?
Here's a link that will be good until srod gets the link fixed, or for at least 2 weeks if he dawdles. :)
Last edited by Demivec on Fri Mar 30, 2012 9:22 pm, edited 1 time in total.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: A OOP class for implementing stacks -massively upgraded

Post by SFSxOI »

Maybe an update of the demo code also?

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.
Post Reply