parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

туплю с копиями CLASS

AK666 14.12.2023 21:45

есть допустим класс
@CLASS 
TestClass

@OPTIONS
locals

@auto[]
 $self.tLines[]


@create[]
 $tLines[^table::create{line}]

@addLine[sLine]
 ^tLines.append[$sLine]

@getLines[]
 $resuilt[^table::create[$tLines]]

@getText[]
 $result[^tLines.menu{$tLines.line}[^#0A]]
в коде делаю так:
 $TestA[^TestClass::create[]]
 $TestB[^TestClass::create[]]


 ^TestA.addLine[this is first line for A]
 ^TestB.addLine[this is first line for B]

 ^TestA.addLine[this is second line for A]
 ^TestB.addLine[this is second line for B]

 <pre>^TestA.getText[]</pre>
 <pre>^TestB.getText[]</pre>
результат:
<pre>this is first line for A
this is first line for B
this is second line for A
this is second line for B</pre>
<pre>this is first line for A
this is first line for B
this is second line for A
this is second line for B</pre>
ФИГЛИ ОНИ СМЕШИВАЮТСЯ ТО ?