On Sun, 10 Apr 2005 07:34:02 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote:
>Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote or quoted: >> In <[EMAIL PROTECTED]>, Tim Tyler wrote: > >> > Like C, Python seems to insist I declare functions before calling >> > them - rather than, say, scanning to the end of the current script >> > when it can't immediately find what function I'm referring to. >> >> They don't have to be declared but to be *defined* in Python before you >> can call them. [...] > >That makes three of you who have called me on my use of "declare". > >AFAICT, I was using the standard dictionary definition of this word: > > http://dictionary.reference.com/search?q=declare > >The term "declare" doesn't have the same meaning as the term "predeclare". We don't need no steenking dictionaries; we're using "declare" and "define" in the same manner as did K&R: int foo(int bar); /* declaration */ int foo(int bar) { /* definition */ return 42 * bar; } -- http://mail.python.org/mailman/listinfo/python-list