lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


For sure, totaly ugly and at first look, not understandable...

On Tue, Oct 18, 2011 at 6:00 PM, Timothy Baldridge <tbaldridge@gmail.com> wrote:
>> int function(int a){
>>  int b;
>>  #include "other_file.h"
>>  return a + b;
>> }
>>
>> // other_file.h
>> b = 42;
>>

Yes that does work, never mind that that enables all sorts of
atrocities, and in general this pattern of programming should be
avoided.

Timothy




--
Gabriel Duarte
Linux User #471185
Rio de Janeiro - RJ
http://genericdev.wordpress.com/

Phones:
(55) (21) 9463-7760  -> Mobile
(55) (21) 2464-9302  -> Home