@@ -1814,9 +1814,6 @@ export StandardE := Expr(StandardS);
18141814export topLevelMode := Expr(StandardS);
18151815topLevelModeS := dummySymbol;
18161816
1817- threadLocal lastError := nullE;
1818- lastErrorS := dummySymbol;
1819-
18201817initialRandomSeed := zeroZZ;
18211818initialRandomHeight := toInteger(10);
18221819
@@ -1851,8 +1848,7 @@ syms := SymbolSequence(
18511848 ( handleInterruptsS = setupvar(" handleInterrupts" ,toExpr(handleInterrupts)); handleInterruptsS ),
18521849 ( printWidthS = setupvar(" printWidth" ,toExpr(printWidth)); printWidthS ),
18531850 ( notifyS = setupvar(" notify" ,toExpr(notify)); notifyS ),
1854- ( topLevelModeS = setupvar(" topLevelMode" ,topLevelMode); topLevelModeS ),
1855- ( lastErrorS = setupvarThread(" lastError " , lastError); lastErrorS )
1851+ ( topLevelModeS = setupvar(" topLevelMode" ,topLevelMode); topLevelModeS )
18561852 );
18571853
18581854export setDebuggingMode(b:bool):void := (
@@ -1891,17 +1887,6 @@ export sethandleInterrupts(b:bool):void := (
18911887 handleInterruptsSetup(b);
18921888 setGlobalVariable(handleInterruptsS,toExpr(b));
18931889 );
1894- setLastError(position:Position, message:string):void := (
1895- if !(
1896- message == returnMessage ||
1897- message == continueMessage || message == continueMessageWithArg ||
1898- message == stepMessage || message == stepMessageWithArg ||
1899- message == breakMessage)
1900- then (
1901- lastError = seq(locate(position), toExpr(message));
1902- setGlobalVariable(lastErrorS, lastError)));
1903- setLastErrorpointer = setLastError;
1904-
19051890threadLocal resetvars := (
19061891 -- These are the thread local variables that got re-initialized in tokens.d:
19071892 -- Actually, this is no good! If the user assigns to one of these variables, the " top level" version
@@ -1925,21 +1910,6 @@ store(e:Expr):Expr := ( -- called with (symbol,newvalue)
19251910 else when s.1
19261911 is Nothing do (
19271912 if sym === debuggerHookS then (debuggerHook = s.1; e)
1928- else if sym === lastErrorS then (lastError = s.1; e)
1929- else buildErrorPacket(msg))
1930- is a:Sequence do (
1931- if sym === lastErrorS then (
1932- if length(a) == 2 then (
1933- when a.0
1934- is p:List
1935- do (
1936- if p.Class == filePositionClass then (
1937- when a.1
1938- is msg:stringCell do (lastError = s.1; e)
1939- else WrongArgString(2))
1940- else WrongArg(1, " a file position" ))
1941- else WrongArg(1, " a file position" ))
1942- else WrongNumArgs(2))
19431913 else buildErrorPacket(msg))
19441914 is b:Boolean do (
19451915 n := b.v;
0 commit comments