01-25-2025, 04:36 PM
Put a string in the user defined type.
Store code in that string.
Write an interpreter that can run the code in that string.
Make sure to check that code with your main program and have the results of any code it executes be responded to.
Tada ...you have methods.
Store code in that string.
Write an interpreter that can run the code in that string.
Make sure to check that code with your main program and have the results of any code it executes be responded to.
Tada ...you have methods.