Comments (1)
NB: the same thing, method for a Union
, works fine as long as none of the types in the Union
were defined with function
. Example:
julia> struct T <: Function end
julia> struct S <: Function end
julia> (::Union{S,T})() = 7
julia> S()()
7
julia> @which S()()
(::Union{S, T})()
@ Main REPL[3]:1
julia> versioninfo()
Julia Version 1.12.0-DEV.766
Commit 9d8ecaa899d (2024-06-21 17:00 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
WORD_SIZE: 64
LLVM: libLLVM-17.0.6 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
from julia.
Related Issues (20)
- Ambiguous behavior of Tuple constructor with mismatched array length HOT 2
- RetentionParameterEstimator hits incorrect assert in emit_masked_bits_compare HOT 1
- Monorepo Packages via Submodules/Subpackages: Support in Pkg and Julia Compiler HOT 15
- Circular dependency detected for Symbolics.jl on Julia 1.11.0-rc2 HOT 7
- [REPL] Autocompletion of `ModuleName.@macro_name` is broken HOT 1
- [REPL] Autocompletion of `@benchmark A .= A setup=(A=` is broken
- Deadlock doing I/O on a foreign thread while the main thread is blocked HOT 5
- `Conditional` lattice element is semantically broken in the presence of SSAValues HOT 1
- `Base.summarysize(::Symbol)` returns zero
- Mention accuracy of `Base.summarysize` in docstring
- `__init__` side effects order is not defined, such that any global effects from `__init__` are a data race HOT 3
- Extension cycles are problematic (long `precompile` times, difficult to understand/resolve) HOT 7
- Add tests about layout of Int128
- Defining `sum(f, ::MyArray; dims)` breaks `sum(::MyArray)`
- Choose number of OpenBLAS threads based on process affinity HOT 6
- `Iterators.rest` gives wrong result for `AbstractRange` HOT 4
- `define_editor` should default to `wait=true` HOT 1
- Type instability when using intrinsics as higher order functions HOT 7
- Can't sum partially initialized non-isbits Hermitian or Symmetric matrix with Diagonal or SymTridiagonal HOT 2
- `--project=@script` is broken or NEWS entry is incorrect (Julia 1.11.0-rc3)
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 julia.