/tutorial/cecil/JVM/root3.e

http://github.com/tybor/Liberty · Specman e · 23 lines · 17 code · 5 blank · 1 comment · 0 complexity · a8d78a3ab5fff58064f72a16369d9479 MD5 · raw file

  1. class ROOT3
  2. creation {ANY}
  3. make
  4. feature {ANY}
  5. make is
  6. -- Dummy root procedure to make some live code.
  7. do
  8. put_string(get_string)
  9. end
  10. get_string: STRING is
  11. do
  12. Result := "Hi from ROOT3%N"
  13. end
  14. put_string (s: STRING) is
  15. do
  16. io.put_string(s)
  17. end
  18. end -- class ROOT3