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

16
LINES

< > BotCompany Repo | #1020131 // dm_get - get field from module + synonym of dm_heldObject

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

Transpiled version (2853L) is out of date.

sO dm_get(O moduleOrID, S field) {
  ret get(dm_getModule(moduleOrID), field);
}

// legacy
sO mapMethodLike dm_get(S field, long moduleID) {
  ret dm_get(moduleID, field);
}

sO dm_get(S field, O moduleID) {
  ret dm_get(moduleID, field);
}

sO dm_get(O mod) {
  ret dm_heldObject(mod);
}

Author comment

Began life as a copy of #1019141

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): bhatertpkbcr, cfunsshuasjs, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, lnbujpyubztb, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, omdjrrnzbjjv, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, veepotesqksf, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1020131
Snippet name: dm_get - get field from module + synonym of dm_heldObject
Eternal ID of this version: #1020131/9
Text MD5: e608fee0b948491ff27714f7463f747f
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-09-08 02:14:26
Source code size: 304 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 427 / 639
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022141 - dm_getOpt - get optional field from module
#1022368 - dm_set - set field in module
#1023918 - dm_getString - get string field from module
#1024792 - dm_rget - get field from module, reverse syntax