Comments (2)
Well, V should be at least giving a better error message.
Seeing code like this makes me wonder... why? Why not just declare a normal function, and call it?
The only difference in doing that is that you have to name the function, instead of V coming up with a dummy name.
And that is exactly what you did to make it work.
All that said, it should probably work with the anonymous function. Or, as I said, give a nice error message telling you why not.
(it's just too FP for me. :-) )
from v.
It's why I said it may be bug. I would be fine with a better error message. On the other hand, it might point to an issue in the compiler. Not my area of expertise.
from v.
Related Issues (20)
- C codegen for struct with function member has gcc generating warnings HOT 4
- -dump-c-flags does not respect -o option HOT 7
- Add input_character_immediate() function to Stdlib
- Build error - undeclared varaible HOT 6
- v -prod for iui throws error HOT 1
- mut and & confusion HOT 4
- Compiler build error: cannot convert 'struct main__Object' to 'struct main__Object * HOT 3
- cgen error for program compiled with -autofree
- Array in closure not updated HOT 1
- Windows: coroutines should display a message that they don't work on Windows, instead of complaining about photonwrapper.so not found HOT 1
- error using `@[flag]` in `vlib/flag/flag.v`
- cgen error, when example is compiled with -autofree HOT 1
- [builder error] match + &
- Unhandled Exception 0xC0000005 HOT 1
- i tried the compile simple sdl window file from sdl example, it shows this error HOT 3
- cgen error: '__v_error' undeclared HOT 1
- anonymous struct embedding lacks checks
- How to obtain generic results using the following function? HOT 2
- string interpolation does not correctly reports pointer when used with maps
- carray_to_varray inside unsafe block warns about requiring an unsafe block
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 v.