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).

sO ccall(Concept.Ref ref, S method, O... args) {
  ret callWithEnter(cDeref(ref), method, args);
}

sO ccall(O object, S method, O... args) {
  ret callWithEnter(object, method, args);
}

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: 134 / 194
Version history: 2 change(s)
Referenced in: [show references]