Libraryless. Click here for Pure Java version (1088L/7K/25K).
1 | !752 |
2 | |
3 | // PersistentLog is defined in #1001972 |
4 | |
5 | static PersistentLog<MyType> log; |
6 | |
7 | static class MyType { |
8 | S a; |
9 | int b; |
10 | } |
11 | |
12 | p { |
13 | log = new PersistentLog<MyType>("mylog"); |
14 | new MyType x; |
15 | x.a = "I am new"; |
16 | x.b = l(log); |
17 | log.add(x); |
18 | print(structure(log)); |
19 | } |
Began life as a copy of #1001971
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001973 |
Snippet name: | Persistent Log Test with custom data type |
Eternal ID of this version: | #1001973/1 |
Text MD5: | 68270e7364af91adc2f888f800a36793 |
Transpilation MD5: | 213b045517b6a01e1b573129f9e66264 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-15 21:51:10 |
Source code size: | 283 bytes / 19 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 666 / 735 |
Referenced in: | [show references] |