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

7
LINES

< > BotCompany Repo | #1031372 // ccall - call a concept's method by reflection. finds and uses an enter() method. actually works for everything

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (15702L/101K).

1  
sO ccall(Concept.Ref ref, S method, O... args) {
2  
  ret callWithEnter(cDeref(ref), method, args);
3  
}
4  
5  
sO ccall(O object, S method, O... args) {
6  
  ret callWithEnter(object, method, args);
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031372
Snippet name: ccall - call a concept's method by reflection. finds and uses an enter() method. actually works for everything
Eternal ID of this version: #1031372/3
Text MD5: ced5637f3d2ced45f916c74f4cd90be3
Transpilation MD5: 9d6f88095cfc38058354df14e5c36f9d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-22 08:58:18
Source code size: 192 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 294
Version history: 2 change(s)
Referenced in: [show references]