Skip to content
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

Syntax for using/importing multiple names from the same module is undocumented #5214

Closed
toivoh opened this issue Dec 22, 2013 · 2 comments
Closed
Labels
docs This change adds or pertains to documentation

Comments

@toivoh
Copy link
Contributor

toivoh commented Dec 22, 2013

I remember that there was introduced a syntax to import multiple names from the same module without having to type out the module name repeatedly, to avoid having to type e.g.

import MyModule.f, MyModule.g

but I can't remember what it was, and there is no example in the Julia manual chapter about modules. What was it? Let's document it!

@ihnorton
Copy link
Member

import MyModule: f, g

@toivoh
Copy link
Contributor Author

toivoh commented Dec 22, 2013

Thanks!

gitfoxi pushed a commit to gitfoxi/julia that referenced this issue Dec 23, 2013
* upstream/master: (89 commits)
  fix JuliaLang#5225
  update pcre
  fix off-by-1 in isqrt. closes JuliaLang#4884
  Add more keywords to ctags regex, plus README
  annotate the types of arguments for derived trigonometric & hyperbolic functions
  fix doc for && and || and update helpdb
  only show ccall literal address warning in imaging mode. closes JuliaLang#5215
  minor update of hypot to ensure consistency of output types
  Fix JuliaLang#5217
  silence compiler warning
  hopefully more robust way of getting github URL (don't assume module name is Pkg name)
  add text/html writemime for MethodList and Method (fix JuliaLang#4952)
  update NEWS
  doc: `import M: single,name` syntax, close JuliaLang#5214
  clean up native finalizers code
  specialized abs2 for bool
  remove use of callback API in REPL
  Some error message cleanup to fix segfault when transposing sparse vector with illegal values.
  test/git*.jl: don't use `echo` to read-and-write from processes.
  test/git*.jl: don't use `echo` to read-and-write from processes.
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

2 participants