Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1012729 // thoughtSpaceDone - opposite of newThoughtSpace

JavaX fragment (include)

1  
static void thoughtSpaceDone(AbstractThoughtSpace ts) {
2  
  if (ts != currentThoughtSpace())
3  
    fail("Can't close thought space, not current: " + ts);
4  
  thoughtSpaceDone();
5  
}
6  
7  
static void thoughtSpaceDone() {
8  
  AbstractThoughtSpace ts = currentThoughtSpace();
9  
  if (ts instanceof ActualThoughtSpace)
10  
    thoughtSpace(ts.parent);
11  
  else
12  
    print("thoughtSpaceDone without thought space");
13  
}

Author comment

Began life as a copy of #1008192

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012729
Snippet name: thoughtSpaceDone - opposite of newThoughtSpace
Eternal ID of this version: #1012729/3
Text MD5: 6adc774abf30fd2d9db75787f51749d7
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-11 03:10:12
Source code size: 401 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 396 / 439
Version history: 2 change(s)
Referenced in: [show references]