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

8
LINES

< > BotCompany Repo | #1025667 // WithToString - wrap an object with a different string representation

JavaX fragment (include)

srecord WithToString<A> extends Var<A> {
  S string;
  
  *() {}
  *(A a, S *string) { super(a); }
  
  toString { ret string; }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025667
Snippet name: WithToString - wrap an object with a different string representation
Eternal ID of this version: #1025667/1
Text MD5: 737f6f8cd4487d5cde0b9444afcf7b61
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-12 21:50:44
Source code size: 137 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 465
Referenced in: [show references]