what is the problem with this code?
when I run it, it stops for user input due to readline but as I enter something it freezes.
And when I used Ctrl + C, it showed a warning.
WARNING: Force throwing a SIGINT
module A
function __init__()
load = (readline(stdin) === "true") ? true : false
if load
print("ok")
end
end
end
using .A
Actually , My problem is that I am not able to use readline() inside __init__().
Outside __init()__ , readline() works fine.
I just want to take an argument from user when I import my custom module is there any other way to do so??