Defining persistent functions #69
jdhitsolutions
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
I took a slightly different approach but the issue was already fixed in #62. I compared the script blocks between Start and Stop, not just names. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, we can define functions like this:
The problem is that if you re-run your configuration script in the current session, this function,
LuckyNumberwon't be displayed. Although it exist and you can run it from a prompt.After digging through your code, I think I have a solution. At the end of the
StopRegistration()class method, save the currently defined functions.In the
StartRegistration()method, remove previously defined functions.This way, when they are defined in the configuration file, they will be re-detected as "new".
So far, this seems to solve the problem. But I don't know if there are any other implications with this approach.
Beta Was this translation helpful? Give feedback.
All reactions