Transpiled version (18173L) is out of date.
1 | sO cgetOrCall(O c, S name) { |
2 | c = derefRef(c); |
3 | O o; |
4 | if (hasMethod(c, name)) |
5 | o = ccall(c, name); |
6 | else |
7 | o = getOpt(c, name); |
8 | ret derefRef(o); |
9 | } |
10 | |
11 | sO mapMethodLike cgetOrCall(S name, O c) { |
12 | ret cgetOrCall(c, name); |
13 | } |
Began life as a copy of #1006649
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032675 |
Snippet name: | cgetOrCall - get concept field of name of call method. prefers calling the method |
Eternal ID of this version: | #1032675/3 |
Text MD5: | 2e9e42cd1c92e8e021b9f80460782933 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-01 17:37:11 |
Source code size: | 242 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 138 / 200 |
Version history: | 2 change(s) |
Referenced in: | [show references] |