Uses 911K of libraries. Click here for Pure Java version (9887L/53K).
1 | !7 |
2 | |
3 | concept MyObject { |
4 | S myName; |
5 | |
6 | toString { ret "I am " + myName; } |
7 | } |
8 | |
9 | cprint Hello { |
10 | start { |
11 | db(); |
12 | print("Number of objects in DB: " + countConcepts(MyObject)); |
13 | cnew MyObject(myName := "Stefan"); |
14 | print("Number of objects in DB: " + countConcepts(MyObject)); |
15 | print(list(MyObject)); |
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030001 |
| Snippet name: | Hello Program |
| Eternal ID of this version: | #1030001/9 |
| Text MD5: | 6418af2c58c265762c3ff107129d90cb |
| Transpilation MD5: | 2c737950e2af5c93a4db83d6d5434e33 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-10-28 09:25:45 |
| Source code size: | 314 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 416 / 949 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |