def execute (code) :
p = 0
while p len(code) :
func = code[p]
p += 1
newP = func(code,p)
if newP != None :
p = newP
I'm trying to work out what this does
code is a list of function addresses and numbers
What on earth is funct(code,p)
On Wed, May 16, 2012 at 8:08 AM, e-mail mgbg25171
mgbg25...@blueyonder.co.uk wrote:
def execute (code) :
p = 0
while p len(code) :
func = code[p]
p += 1
newP = func(code,p)
if newP != None :
p = newP
I'm trying to work out what this
It's been a long time since I did any Python and I've never done that
In C I'm used to storing function ptrs and then having to use some other
constructs to call them.
To be able to store func and then use func to call itself like that threw
me...it's very elegant.
Thank you very much for your