1 | concept UserName {
|
2 | S name; |
3 | bool usable; |
4 | } |
5 | |
6 | concept Line {
|
7 | S text; |
8 | new Ref<LineIdea> idea; |
9 | |
10 | *() {}
|
11 | *(S *text) { change(); }
|
12 | } |
13 | |
14 | concept UserLine extends Line {
|
15 | *() {}
|
16 | *(S text) { super(text); }
|
17 | } |
18 | |
19 | concept BotLine extends Line {
|
20 | *() {}
|
21 | *(S text, LineIdea idea) {
|
22 | super(text); |
23 | this.idea.set(idea); |
24 | } |
25 | } |
26 | |
27 | concept LineIdea {}
|
28 | |
29 | concept LError extends LineIdea {
|
30 | S stackTrace; |
31 | |
32 | *() {}
|
33 | *(Throwable e) { stackTrace = getStackTrace(e); change(); }
|
34 | } |
35 | |
36 | concept LGreet extends LineIdea {
|
37 | new Ref<UserName> userName; |
38 | |
39 | *() {}
|
40 | *(UserName u) { userName.set(u); }
|
41 | } |
42 | |
43 | concept LWhatsYourName extends LineIdea {}
|
44 | |
45 | concept LIDontUnderstand extends LineIdea {}
|
46 | |
47 | concept Dialog {
|
48 | new RefL<Line> lines; |
49 | } |
50 | |
51 | static Dialog dialog() {
|
52 | ret unique(Dialog); |
53 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005284 |
| Snippet name: | User's Name [Include] |
| Eternal ID of this version: | #1005284/1 |
| Text MD5: | 29852741810ca8a38290b046f9185866 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-10-29 18:03:50 |
| Source code size: | 829 bytes / 53 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 762 / 967 |
| Referenced in: | [show references] |