Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Invoking Lua from Squeak using OSProcess Command shell
Last updated at 11:00 am UTC on 22 August 2019
Mailing list: Thu, Jul 25, 2019
 CommandShell command:  'lua -l BananasArgs -e ''p = require("BananasArgs") frame = {} frame["args"] = {"Fred", bananas=5, cherries=2} print(p.has_fruit(frame))'' | inspect; exit'


Mailing list: Thu, Aug 22, 2019 at 6:08 AM

 #printString on String does the trick:
 
 methodTemplateLua := 'lua ^ {1}'.
 methodSourceLua := methodTemplateLua format: { lua printString }.