public class main {
public main: String[] args {
print "Smalltalk-style main function :)"
compare: 3 and: 5;
compare: 10 and: 2;
}
static void compare: int a and: int b {
if (a < b)
print "a is smaller than b"
else
print "a is not smaller than b"
}
}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: | #612 |
| Snippet name: | Smalltalk-style methods test |
| Eternal ID of this version: | #612/1 |
| Text MD5: | 4c81cbfbd5e04077f979b101cfc70932 |
| Author: | stefan |
| Category: | javax/smalltalk |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-05-10 14:13:48 |
| Source code size: | 306 bytes / 14 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1046 / 977 |
| Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |