[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntax trees, macros, and reflexive Lua evolution
- From: Mark Hamburg <mhamburg@...>
- Date: Wed, 10 Nov 2004 08:14:50 -0800
The type-checking won't work in your example because foo might get redefined
before being called by foobar.
Mark
on 11/9/04 9:59 PM, Quinn Tyler Jackson at quinn-j@shaw.ca wrote:
> This could also be used for simple type checking:
>
> function foo() returns string
> return "10";
> end
>
> function foobar() returns number
> return foo(); // illegal, since foo returns string
> end