Skip to content

Commit

Permalink
Open the encode-json generic. Fix 'unused' warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Oct 13, 2013
1 parent 0b5d260 commit f69b474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json.dylan
Expand Up @@ -3,7 +3,7 @@ Copyright: Original Code is Copyright (c) 2011 Dylan Hackers
All rights reserved.
License: See License.txt in this distribution for details.

define generic encode-json (stream :: <stream>, object :: <object>);
define open generic encode-json (stream :: <stream>, object :: <object>);

define constant $escapes =
vector(pair("\\", "\\\\"),
Expand Down
2 changes: 1 addition & 1 deletion parser.dylan
Expand Up @@ -365,7 +365,7 @@ define constant $null :: <null> = make(<null>);

define class <json-parser> (<object>)
// Source is for error reporting only. It could be a file name, a stream, etc.
constant slot input-source :: <object>, required-init-keyword: source:;
//constant slot input-source :: <object>, required-init-keyword: source:;

// Text is the entire original source text.
// TODO(cgay): Support streams better. Probably make stream optional and use
Expand Down

0 comments on commit f69b474

Please sign in to comment.