This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern mod std; | |
use std::net; | |
use std::uv; | |
type ErrChan = comm::SharedChan<Option<net::tcp::TcpErrData>>; | |
fn on_ready(_kill_ch: ErrChan) { | |
io::println("listener is ready"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::str::*; | |
fn main() { | |
let s = ~"hello"; | |
let f = |ch| { io::println(fmt!("%?",ch)); true }; | |
// Works: | |
each_char(s, f); | |
// Fails: | |
// s.each_char(f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX := clang++ | |
CXXFLAGS := -isystem ./external -std=c++11 -stdlib=libc++ -MMD -MP \ | |
-Wall -Wpedantic -Wextra -Weffc++ -O3 | |
SRCS := $(wildcard src/*.cpp) | |
OBJS := $(SRCS:.cpp=.o) | |
TESTSRCS := $(wildcard tests/*.cpp) | |
TESTOBJS := $(TESTSRCS:.cpp=.o) | |
TESTOBJS += $(filter-out src/main.o,$(OBJS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": [ | |
{ | |
"Contract": { | |
"kind": { | |
"name": { | |
"kind": "ERC20", | |
"span": { | |
"start": 9, | |
"end": 14 |