Comments (1)
Actually, what the NeoCompiler does is pass the name of the public function as the first argument of Main
since the ICO example uses this configuration (and we used to as well) to select the right operation option.
So, there whould be no problem to keep the functions, that are also defined on Main
, as public
since it is not possible to directly invoke them without pass through Main
. Indeed, this is one of the crucial aspects here because if this behaviour was allowed, their respective exceptions wouldn't be executed.
However, on the current algorithm version, the operation option is the second argument of Main
, and the "shortcut" will not be correctly invoked because all the evaluations will fall under the else
statement.
So, let's keep only the Main
as public.
from microgrid-dapp.
Related Issues (12)
- Confused definition HOT 1
- The dual behaviour of an 'Address' HOT 1
- Format code by "classes"
- Evaluate "object" as "string" HOT 1
- The differences between ID's are still wrong HOT 2
- Implement code testing HOT 2
- Fix code analysis
- Documentation update
- Implement API to NeoCompiler EcoLab HOT 1
- Missing fixes
- Fix all the --PENDING-- HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microgrid-dapp.