Skip to content

Commit

Permalink
deprecate x[i:] syntax. closes #4678
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jan 22, 2014
1 parent f7b67fe commit d5b5a1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/julia-parser.scm
Expand Up @@ -583,6 +583,16 @@
ex)
(let ((argument
(cond ((closing-token? (peek-token s))
(io.write
*stderr*
(string
#\newline "WARNING: deprecated syntax \"x[i:]\""
(if (eq? current-filename 'none)
""
(string
" at "
current-filename ":" (input-port-line (ts:port s))))
"." #\newline "Use \"x[i:end]\" instead." #\newline))
':) ; missing last argument
((newline? (peek-token s))
(error "line break in \":\" expression"))
Expand Down

0 comments on commit d5b5a1f

Please sign in to comment.