Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #612 // Smalltalk-style methods test

JavaX source code - run with: x30.jar

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: 783 / 709
Referenced in: [show references]