-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ints in composite types and method missing #1534
Comments
And? |
You have a typo in the inner constructor for type |
I think that is the issue --- if there is "other stuff" in the type block, but no constructor definition, the default constructor still goes away. This doesn't bother me much; the resulting "no method" error is correct and would lead you to the source of the problem. |
I think that's desirable behavior. Even if you don't define a method on the type itself, by defining any function in there, you have access to the |
thank you On Mon, Nov 12, 2012 at 4:20 PM, Jeff Bezanson [email protected]:
|
…34091) git log --oneline 0c2dddd40e4d7492d2a7337be54c345011e5f1e1^..8e236a7f993f1e732ffd0ab5c15736b2594e4109 8e236a7 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #1544 from JuliaLang/sk/telemetry 90b8482 telemetry: factor out telemetry file loading 228fb97 CI telemetry: send indicators for common CI env vars 246dbd0 Pkg protocol: basic anonymous opt-out telemetry e66a75f Introduce special REPL syntax for shared environments (#1488) afeb1ee Merge pull request #1538 from JuliaLang/sk/pkg-client-auth 9c357bb Pkg client auth: support connecting to authenticated Pkg servers 6dd7f34 PlatformEngines: revert API part of headers support (broken) 6825b48 Merge pull request #1539 from 00vareladavid/00/fixes 3f1cf40 it is invalid to `add` a package with no commits 0766765 test: default environment should be created when the primary depot does not exist 43f46f8 check no overwrite is occuring when resolving from a project file 37b6853 handle primary depot as relative path 53fdf24 Check for duplicate name/UUID input 8a6387c Remove redundant precompile statement 4d0901e Dont throw error when autocompleting faulty input (#1530) d69f6d7 Refactor and test `Pkg.test` (#1427) 8ca8b6d PlatformEngines: use `tar -m` to ignore mtimes (#1537) 6797928 Make sure sandbox's temp Project.toml and Manifest.toml files are writable (#1534) f968cc9 clarify: stacked envs only affect top-level loading (#1529) 0dfef59 PlatformEngines.download: add header support (#1531) 49ab53e Fix tree hashing with nested empty directories (#1522) 0c2dddd fix #1514: install_archive call in backwards_compatible_isolation (#1517)
…34091) git log --oneline 0c2dddd40e4d7492d2a7337be54c345011e5f1e1^..8e236a7f993f1e732ffd0ab5c15736b2594e4109 8e236a7 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #1544 from JuliaLang/sk/telemetry 90b8482 telemetry: factor out telemetry file loading 228fb97 CI telemetry: send indicators for common CI env vars 246dbd0 Pkg protocol: basic anonymous opt-out telemetry e66a75f Introduce special REPL syntax for shared environments (#1488) afeb1ee Merge pull request #1538 from JuliaLang/sk/pkg-client-auth 9c357bb Pkg client auth: support connecting to authenticated Pkg servers 6dd7f34 PlatformEngines: revert API part of headers support (broken) 6825b48 Merge pull request #1539 from 00vareladavid/00/fixes 3f1cf40 it is invalid to `add` a package with no commits 0766765 test: default environment should be created when the primary depot does not exist 43f46f8 check no overwrite is occuring when resolving from a project file 37b6853 handle primary depot as relative path 53fdf24 Check for duplicate name/UUID input 8a6387c Remove redundant precompile statement 4d0901e Dont throw error when autocompleting faulty input (#1530) d69f6d7 Refactor and test `Pkg.test` (#1427) 8ca8b6d PlatformEngines: use `tar -m` to ignore mtimes (#1537) 6797928 Make sure sandbox's temp Project.toml and Manifest.toml files are writable (#1534) f968cc9 clarify: stacked envs only affect top-level loading (#1529) 0dfef59 PlatformEngines.download: add header support (#1531) 49ab53e Fix tree hashing with nested empty directories (#1522) 0c2dddd fix #1514: install_archive call in backwards_compatible_isolation (#1517)
(I understand that basic initializers are autogenerated, but with other explicit inner generators, the basic initializers seem to be required explicitly -- these examples omit the extra initializers)
this works
julia> type T
val::Int
T(val::Int)=new(val)
end
julia> T(5)
T(5)
this does not work
julia> type T1
aval::Int
bval::Int
T(aval::Int,bval::Int) = new(aval,bval)
end
julia> T1(5,5)
no method T1(Int64,Int64)
in method_missing at base.jl:72
The text was updated successfully, but these errors were encountered: