[Tutor] ?4uplz-> function
Remco Gerlich
scarblac@pino.selwerd.nl
Fri, 5 Oct 2001 23:12:58 +0200
On 0, David Meltzer <asdffdsa@bellatlantic.net> wrote:
> hilo2u and thanks for reading this,
> i would like to find a way to create a def that behaves more like a builtin
> keyword such as 'print' in that i would not need to use a parenthesis.
>
> here is an example
>
> print 10 //this is legal
>
> def printit(Num):
> print Num
>
> printit (10) //legal
> printit 10 //illegal.
>
> so perhaps you know a way to make the illegal legal
That's not possible. Only statements work like that, and you can't define
new statements.
--
Remco Gerlich