[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why not Just PHP-stupid include?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 18 Oct 2011 15:41:26 -0200
> I could then write code in another file that would patch the two
> together something like this:
> function sillyCode()
> include("functions.lua)
> silly1()
> local y =2
> include("locals.lua")
> print(x + y)
> end
You could write a simple reader function that reads input line by line and
understands includes but it will be fooled by long strings and long comments.