Skip to content

Instantly share code, notes, and snippets.

@samaaron
Created January 19, 2009 19:53
Show Gist options
  • Select an option

  • Save samaaron/49140 to your computer and use it in GitHub Desktop.

Select an option

Save samaaron/49140 to your computer and use it in GitHub Desktop.
obj.registerMethod(obj.runtime.newJavaMethod("Returns a text inspection of the object", new TypeCheckingJavaMethod.WithNoArguments("inspect", runtime.list) {
@Override
public Object activate(IokeObject method, Object on, List<Object> args, Map<String, Object> keywords, IokeObject context, IokeObject message) throws ControlFlow {
return method.runtime.newText(IokeList.getInspect(on));
}
}));
compile:
[javac] Compiling 121 source files to /Users/sam/Development/melwin/build/classes
[javac] /Users/sam/Development/melwin/src/main/ioke/lang/IokeList.java:42: cannot find symbol
[javac] symbol: class Map
[javac] public Object activate(IokeObject method, Object on, List<Object> args, Map<String, Object> keywords, IokeObject context, IokeObject message) throws ControlFlow {
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment