Re: Implementing a fixed size stack for an RPN Calculator

2007-09-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: On Sep 12, 2:55 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 12 Sep 2007 20:55:22 +, [EMAIL PROTECTED] wrote: I have implemented an RPN calculator in python but now I would like to make the stack size fixed. how can I transform the user's RPN

Implementing a fixed size stack for an RPN Calculator

2007-09-12 Thread [EMAIL PROTECTED]
I have implemented an RPN calculator in python but now I would like to make the stack size fixed. how can I transform the user's RPN expression from a stack overflow to a computable expression. For instance, if my stack size is 2 then the some expression can't be computed but could be

Re: Implementing a fixed size stack for an RPN Calculator

2007-09-12 Thread Marc 'BlackJack' Rintsch
On Wed, 12 Sep 2007 20:55:22 +, [EMAIL PROTECTED] wrote: I have implemented an RPN calculator in python but now I would like to make the stack size fixed. how can I transform the user's RPN expression from a stack overflow to a computable expression. For instance, if my stack size is 2

Re: Implementing a fixed size stack for an RPN Calculator

2007-09-12 Thread [EMAIL PROTECTED]
On Sep 12, 2:55 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 12 Sep 2007 20:55:22 +, [EMAIL PROTECTED] wrote: I have implemented an RPN calculator in python but now I would like to make the stack size fixed. how can I transform the user's RPN expression from a stack