Jump to content

Add a variable to a class instance at runtime: Difference between revisions

Line 345:
 
=={{header|FBSL}}==
FBSL class instances aren't expandable with additional, directly accessible public methods at runtime once the class template is defined in the user code. But FBSL has an extremely powerful feature -- an ExecLine() function -- which permits the user to execute any additional code on the fly either privately (bypassing the main code flow) or publicly (interacting with the main code). ExecLine() can be used for a variety of applications from the fine-tuning theof current tasks to designing application plug-ins or completely standalone code debuggers. The following class instance may be stuffed up at runtime with any code from simple variables to executable private methods and properties.
<lang qbasic>#APPTYPE CONSOLE
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.