Mercurial Hosting > luan
comparison core/src/luan/modules/IoLuan.java @ 574:6cc2f047019b
remove LuanState.call()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 12:31:53 -0600 |
parents | f1601a4ce1aa |
children | 7c3ad6db8ac3 |
comparison
equal
deleted
inserted
replaced
573:894f991baac5 | 574:6cc2f047019b |
---|---|
590 String location = name.substring(i+1); | 590 String location = name.substring(i+1); |
591 LuanTable schemes = schemes(luan); | 591 LuanTable schemes = schemes(luan); |
592 LuanFunction opener = (LuanFunction)schemes.get(luan.JAVA,scheme); | 592 LuanFunction opener = (LuanFunction)schemes.get(luan.JAVA,scheme); |
593 if( opener == null ) | 593 if( opener == null ) |
594 throw luan.exception( "invalid scheme '"+scheme+"' in '"+name+"'" ); | 594 throw luan.exception( "invalid scheme '"+scheme+"' in '"+name+"'" ); |
595 return (LuanTable)Luan.first(luan.call(opener,"<open \""+name+"\">",new Object[]{location,addExtension})); | 595 return (LuanTable)Luan.first(opener.call(luan,new Object[]{location,addExtension})); |
596 } | 596 } |
597 | 597 |
598 public static final class LuanSocket extends LuanIO { | 598 public static final class LuanSocket extends LuanIO { |
599 private final Socket socket; | 599 private final Socket socket; |
600 | 600 |