Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def rpn::STACK::rotate (   self  ) 

rotate top 4 elements of stack 

Definition at line 42 of file rpn.py.

00042                     : 
        ''' rotate top 4 elements of stack '''
        self.stackSize()
        # remove top 4 elements, then add back to stack in reverse order
        self._X = self._stackData.pop()
        self._Y = self._stackData.pop()
        self._Z = self._stackData.pop()
        self._T = self._stackData.pop()
        self._stackData.append(self._X)
        self._stackData.append(self._T)
        self._stackData.append(self._Z)
        self._stackData.append(self._Y)


Generated by  Doxygen 1.6.0   Back to index