Re: [NTG-context] Stange behavior of \startluacode

2010-10-05 Thread Aditya Mahajan
On Sun, 3 Oct 2010, Hans Hagen wrote: On 3-10-2010 1:46, Aditya Mahajan wrote: Hi, The following snippet \startluacode -- \undefined why should a comment matter a = 10 \stopluacode fails with system > error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '20' is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Hans Hagen
On 4-10-2010 9:19, Procházka Lukáš Ing. - Pontex s. r. o. wrote: (Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is printed. If I modify the code: ---

Re: [NTG-context] Stange behavior of \startluacode

2010-10-03 Thread Hans Hagen
On 3-10-2010 1:46, Aditya Mahajan wrote: Hi, The following snippet \startluacode -- \undefined why should a comment matter a = 10 \stopluacode fails with system > error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a comment matt a = 10 \dodostartluacode .

Re: [NTG-context] Stange behavior of \startluacode

2010-10-03 Thread Wolfgang Schuster
Am 03.10.2010 um 11:02 schrieb Wolfgang Schuster: > Am 03.10.2010 um 10:28 schrieb luigi scarso: > >> Limitation, but it should be doable to remedy in TeX. > > Possible but is it worth the effort, when you start with “--” the percent > should also behave like in Lua etc. The problem is that t

Re: [NTG-context] Stange behavior of \startluacode

2010-10-03 Thread Wolfgang Schuster
Am 03.10.2010 um 10:28 schrieb luigi scarso: >> Bug or limitation? > Limitation, but it should be doable to remedy in TeX. Possible but is it worth the effort, when you start with “--” the percent should also behave like in Lua etc. \starttext \bgroup\obeylines \gdef\texcomment#1 {} \egroup

Re: [NTG-context] Stange behavior of \startluacode

2010-10-03 Thread luigi scarso
On Sun, Oct 3, 2010 at 1:46 AM, Aditya Mahajan wrote: > Hi, > > The following snippet > > \startluacode >  -- \undefined why should a comment matter >  a = 10 > \stopluacode > > fails with > > system          > error on line 4 in file bug.tex: Undefined control > sequence ... >  -- \undefined >  

Re: [NTG-context] Stange behavior of \startluacode

2010-10-02 Thread Wolfgang Schuster
Am 03.10.2010 um 01:46 schrieb Aditya Mahajan: > Hi, > > The following snippet > > \startluacode > -- \undefined why should a comment matter > a = 10 > \stopluacode > > fails with > > system > error on line 4 in file bug.tex: Undefined control sequence > ... > -- \undefined >

Re: [NTG-context] Stange behavior of \startluacode

2010-10-02 Thread Wolfgang Schuster
Am 03.10.2010 um 01:46 schrieb Aditya Mahajan: > Hi, > > The following snippet > > \startluacode > -- \undefined why should a comment matter > a = 10 > \stopluacode > > fails with > > system > error on line 4 in file bug.tex: Undefined control sequence > ... > -- \undefined >

[NTG-context] Stange behavior of \startluacode

2010-10-02 Thread Aditya Mahajan
Hi, The following snippet \startluacode -- \undefined why should a comment matter a = 10 \stopluacode fails with system > error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a comment matt a = 10 \dodostartluac