forked from EvergreenCrypto/docker-finance
container: finance: lib_root: rename Example class
For clarity that this class is separate from plugin's entrypoint.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# docker-finance | modern accounting for the power-user
|
||||
#
|
||||
# Copyright (C) 2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
# Copyright (C) 2025-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -97,19 +97,19 @@ function lib_root::__parse_root()
|
||||
...
|
||||
Interpreting: 'int i{123}; i'
|
||||
(int) 123
|
||||
root [3] dfi::plugin::example::Example e; // Plugin's Example class is now available to use
|
||||
root [4] e.example2()
|
||||
root [3] dfi::plugin::example::MyExamples my; // Plugin's MyExamples class is now available to use
|
||||
root [4] my.example2()
|
||||
...
|
||||
root [5] g_plugin_example_cc.unload() // Plugin is a global instance based on Pluggable entrypoint name
|
||||
Interpreting: 'dfi::plugin::example::example_cc::unload(\"std::cout << --i << std::endl;\")'
|
||||
Interpreting: 'std::cout << --i << std::endl;'
|
||||
122
|
||||
...
|
||||
root [6] e.example2() // Since plugin has been unloaded, this is expected to not compile
|
||||
root [6] my.example2() // Since plugin has been unloaded, this is expected to not compile
|
||||
input_line_27:2:3: error: use of undeclared identifier 'e'
|
||||
(e.example2())
|
||||
(my.example2())
|
||||
^
|
||||
Error in <HandleInterpreterException>: Error evaluating expression (e.example2())
|
||||
Error in <HandleInterpreterException>: Error evaluating expression (my.example2())
|
||||
Execution of your code was aborted.
|
||||
root [7] .quit
|
||||
$
|
||||
|
||||
Reference in New Issue
Block a user