Comments (10)
@aayarushin no, not yet in production. It is fully implemented, but pending review: #2863
The documentation has to be updated, yes.
from solidity.
Several reasons, but you are lucky, I'm working on exactly this right as I type (not exactly right but you get the point ;) )
from solidity.
struct Patient {
bytes32 name;
uint weight; // weight is accumulated by delegation
uint height; // if true, that person already voted
uint NHSNum; //include timestamp
bytes32 specialty;
bytes32 consultant;
bytes32 diagnoses;
uint Creatinite;
uint Sodium;
uint Potassium;
uint eGFR;
uint Urea;
}
Patient[] patients;
function allPatients() constant returns(Patient[]) {
return patients;
}
without internal in allPatients() it will cause same error.
why such a basic feature not implement in?
from solidity.
unfortunately nested arrays aren't yet implemented as arguments for external functions.
from solidity.
also please implement structs
from solidity.
https://www.pivotaltracker.com/n/projects/1189488/stories/91594340
from solidity.
what's the status of this? function f (string[] _s)
does not work, function f (address[] _a)
does though.
from solidity.
@5chdn string
is an array itself, so string[]
is actually two-dimensional. The story is still pending, as can be seen from PT.
from solidity.
@chriseth Is passing and returning struct in functions in production yet? You have mentioned this in 0.4.17 release notes, but it is not clear if support is only for internal functions as the docs say or if this is also available between contracts and in function types? The doc: http://solidity.readthedocs.io/en/develop/frequently-asked-questions.html?highlight=struct%20function#can-a-contract-function-return-a-struct
Thank you so much for all work! :)
from solidity.
This explains why I get a Error: invalid solidity type!: tuple
when I try to get back a struct
from solidity.
Related Issues (20)
- ABI is different for functions defined in libraries as compared to contracts.
- Function overload clash for custom types
- version pragma accepts partial string literals in any position
- Outputting the CBOR Metadata positions in the bytecode
- Introduce `readonly` modifier for internal function parameters in memory
- Shift in AST IDs affects inlining and expression splitting decisions in Yul Optimizer, causing bytecode differences HOT 1
- [TypeChecker] ICE in memoryMemberTypes() HOT 2
- Copying `calldata` and `memory` arrays to storage reports ICE HOT 2
- Add Python packages to docker base image HOT 6
- Donating Funds to Solidity HOT 2
- Feature Request: Generate Language Specific Object Contract Mapper from ABI
- Multiple _ within a function modifier lead to incorrect behavior when via-ir is enabled HOT 1
- Allow modularising yul assembly
- Include mapping parameter names in AST and StorageLayout
- Please allow to encode calls to functions using variable sized arrays/tuples as parameters. HOT 1
- Tag position used instead of tag size to compute size of addresses
- replace `Brownie` with `Ape` HOT 8
- Incorrect `parameterSlots` and `returnSlots` for some methods in `functionDebugData`
- Stack too deep errors with via-IR for some compilation routines
- Enable function overloading resolution when importing specific libraries or free functions via `using for` HOT 1
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 solidity.