Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I didn't think of this but I use it:

  % ./hworld.tcl  
  Hello, world.
  % cat hworld.tcl 
  #!/bin/sh
  # the next line restarts using tcl \
  exec tclsh "$0" "$@"
  puts "Hello, world."
  % 
Turns-out that in TCL you can line continue a comment :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: