Skip to content

Commit

Permalink
fixing issue #133, better error for using [ ] for multiple values
Browse files Browse the repository at this point in the history
don't display --lisp option in help
  • Loading branch information
JeffBezanson committed Jul 19, 2011
1 parent e84691c commit f693b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,10 @@
(pattern-lambda (|::| (-- expr (-^ (-s))) T)
`(call (top typeassert) ,expr ,T))

;; incorrect multiple return syntax [a, b, ...] = foo
(pattern-lambda (= (vcat . args) rhs)
(error "use \"(a, b) = ...\" to assign multiple values"))

; adding break/continue support to while loop
(pattern-lambda (while cnd body)
`(scope-block
Expand Down
3 changes: 1 addition & 2 deletions ui/repl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ static const char *opts =
" -P --post-boot=<expr> Evaluate <expr> right after boot\n"
" -L --load=file Load <file> right after boot\n"
" -b --bare Bare: don't load default startup files\n"
" -J --sysimage=file Start up with the given system image file\n"
" --lisp Start with Lisp prompt not Julia\n\n"
" -J --sysimage=file Start up with the given system image file\n\n"

" -h --help Print this message\n";

Expand Down

0 comments on commit f693b1d

Please sign in to comment.