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

5
LINES

< > BotCompany Repo | #1021647 // dm_registerAs - return this module on a certain message in VM bus (uses module ID)

JavaX fragment (include)

static AutoCloseable mapMethodLike dm_registerAs(S... msgs) {
  F0<S> f = func -> S { dm_moduleID() };
  ret combineAutoCloseables(map(msgs, msg ->
    dm_vmBus_answerToMessage(msg, f)));
}

Author comment

Began life as a copy of #1020796

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021647
Snippet name: dm_registerAs - return this module on a certain message in VM bus (uses module ID)
Eternal ID of this version: #1021647/8
Text MD5: 0ff2e42d8a6ff03a503785888a9b5611
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-16 17:17:51
Source code size: 193 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 451
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024065 - dm_registerAs_directLink - return this module (direct object reference) on a certain message in VM bus