Thread overview
Internal error: ../ztc/cod2.c 4211
Oct 01, 2005
Ant
Oct 01, 2005
Ant
Oct 01, 2005
Walter Bright
Re: Internal error: ../ztc/cod2.c 4211 now it's ztc353 no small example
Oct 03, 2005
Ant
Re: Internal error: ../ztc/cod2.c 4211 now it's ztc353 on small example
Oct 03, 2005
Ant
Oct 04, 2005
Walter Bright
October 01, 2005
just got
Internal error: ../ztc/cod2.c 4211

linux dmd 0.131
October 01, 2005
Ant wrote:
> just got
> Internal error: ../ztc/cod2.c 4211
> 
> linux dmd 0.131


changing:

codeEdit.insertText(insertPos, codeEdit.getCharAt(startComment+1)~" ");

to:
char c = codeEdit.getCharAt(startComment+1);
codeEdit.insertText(insertPos, c~" ");

made the error disapear
October 01, 2005
"Ant" <duitoolkit@yahoo.ca> wrote in message news:dhlcvv$26ts$2@digitaldaemon.com...
> Ant wrote:
> > just got
> > Internal error: ../ztc/cod2.c 4211
> >
> > linux dmd 0.131
>
>
> changing:
>
> codeEdit.insertText(insertPos, codeEdit.getCharAt(startComment+1)~" ");
>
> to:
> char c = codeEdit.getCharAt(startComment+1);
> codeEdit.insertText(insertPos, c~" ");
>
> made the error disapear

It would help a lot to have a reproducible small snippet of code?


October 03, 2005
Walter Bright wrote:

> It would help a lot to have a reproducible small snippet of code?

I got
Internal error: ../ztc/cgcs.c 353
(hope it's related to 4211)

from:


class CodeEdit
{
	void insertText(int pos, char[] str)
	{
		
	}
	
	char getCharAt(int pos)
	{
		return 'c';
	}
}

void main()
{
	
	int insertPos = 1;
	int startComment = 2;
	CodeEdit codeEdit = new CodeEdit();
	
	codeEdit.insertText(insertPos, codeEdit.getCharAt(startComment+1)~" ");
}
October 03, 2005
I meant 'on' not 'no'...

Ant wrote:
> Walter Bright wrote:
> 
>> It would help a lot to have a reproducible small snippet of code?
> 
> I got
> Internal error: ../ztc/cgcs.c 353
> (hope it's related to 4211)
> 
> from:
> 
> 
> class CodeEdit
> {
>     void insertText(int pos, char[] str)
>     {
>            }
>         char getCharAt(int pos)
>     {
>         return 'c';
>     }
> }
> 
> void main()
> {
>         int insertPos = 1;
>     int startComment = 2;
>     CodeEdit codeEdit = new CodeEdit();
>         codeEdit.insertText(insertPos, codeEdit.getCharAt(startComment+1)~" ");
> }
October 04, 2005
Thanks, I'll take care of it.