1 | static int callAnswerMethod_version; |
2 | |
3 | static S callAnswerMethod(S s) { |
4 | if (callAnswerMethod_version == 0) |
5 | if (hasMethod(mc(), "answer", "", new L)) callAnswerMethod_version = 1; |
6 | else if (hasMethod(mc(), "answer", "")) callAnswerMethod_version = 2; |
7 | else callAnswerMethod_version = -1; |
8 | |
9 | if (callAnswerMethod_version == 1) |
10 | ret (S) callMC("answer", s, emptyList()); |
11 | else if (callAnswerMethod_version == 2) |
12 | ret (S) callMC("answer", s); |
13 | null; |
14 | } |
15 | |
16 | static S callAnswerMethod(O responder, S s) { |
17 | ret callAnswerMethod(responder, s, litlist(s)); |
18 | } |
19 | |
20 | static S callAnswerMethod(O responder, S s, L<S> history) { |
21 | S answer = (S) callOpt(responder, "answer", s, history); |
22 | if (answer == null) |
23 | answer = (S) callOpt(responder, "answer", s); |
24 | return emptyToNull(answer); |
25 | } |
Began life as a copy of #1001800
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: | #1002618 |
Snippet name: | callAnswerMethod |
Eternal ID of this version: | #1002618/5 |
Text MD5: | 07777c4bef75093e5078d0fe4c60059b |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-24 00:27:38 |
Source code size: | 815 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 717 / 653 |
Version history: | 4 change(s) |
Referenced in: | [show references] |