Author Topic: Why isn't there a Slick-C Interactive window?  (Read 104 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2190
  • Hero Points: 192
  • Text
Why isn't there a Slick-C Interactive window?
« on: June 01, 2021, 08:52:46 pm »
This would be most helpful when writing scripts.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5776
  • Hero Points: 461
Re: Why isn't there a Slick-C Interactive window?
« Reply #1 on: June 01, 2021, 11:21:31 pm »
Slick-C isn't what you call a dynamic language like say Python. This doesn't mean it's not possible but it does make this a lot harder. Maybe this could be implemented by adding the lines the users types into a file in the background and running the code. If you added "a=4+5;", you would not see the result (9) unless you added "say(a);". This would be very hard to work around.  While an interactive shell for Slick-C is possible, it's just as easy to write a macro which loads and runs some default macro you've written that you are currently editing. I've got a key binding for load and I usually make a key binding for the macro I want to test run if I don't already have one.