Download Jar. Libraryless. Click here for Pure Java version (6823L/48K).
1 | !7 |
2 | |
3 | /* |
4 | sS bla() { |
5 | S x = "hello"; |
6 | |
7 | embedded S calc() { |
8 | ret x + " " + x; |
9 | } |
10 | |
11 | ret calc() + " " + calc(); |
12 | } |
13 | */ |
14 | |
15 | sS bla() { |
16 | S x = "hello"; |
17 | |
18 | class Temp { |
19 | S calc() { |
20 | ret x + " " + x; |
21 | } |
22 | } |
23 | new Temp temp; |
24 | |
25 | ret temp.calc() + " " + temp.calc(); |
26 | } |
27 | |
28 | p-exp { |
29 | print(bla()); |
30 | } |
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: | #1025199 |
Snippet name: | Embedded function test |
Eternal ID of this version: | #1025199/4 |
Text MD5: | 27fcb13afa8f91d6ed768a8973d5fa02 |
Transpilation MD5: | 2ab3a9181fe77b216c519df2881b82ed |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-13 12:47:34 |
Source code size: | 333 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 437 / 1137 |
Version history: | 3 change(s) |
Referenced in: | [show references] |