This file contains hidden or 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
dartcでコンパイルしようとした場合次のようになる | |
ranha@ranha:~/dart_full/dart$ ./out/Debug_ia32/dartc ~/dart/read1bytefromfile.dart | |
file:/home/ranha/dart/read1bytefromfile.dart/read1bytefromfile.dart:9: no such type "File" | |
8: main() { | |
9: var f = new File("read1bytefromfile.dart",false); | |
file:/home/ranha/dart/read1bytefromfile.dart/read1bytefromfile.dart:9: New expression does not resolve to a constructor | |
8: main() { | |
9: var f = new File("read1bytefromfile.dart",false); |
This file contains hidden or 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
/Users/ranha/c_misc/embed% gcc --version | |
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) | |
Copyright (C) 2007 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
/Users/ranha/c_misc/embed% gcc -fno-toplevel-reorder -c prog.c | |
/Users/ranha/c_misc/embed% gobjdump -s prog.o |
This file contains hidden or 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
#include <stdio.h> | |
struct T { | |
struct S { | |
int s; | |
} s; | |
}; | |
int main() | |
{ |
This file contains hidden or 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
template<typename T> | |
void f(T,T){} | |
int main() | |
{ | |
f("",0); | |
return 0; | |
} |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
int f(); | |
int main(); | |
void g(); | |
int f(void) | |
{ |
This file contains hidden or 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
/Users/ranha/c_misc/souwa% gcc --version | |
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) | |
Copyright (C) 2007 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
/Users/ranha/c_misc/souwa% gcc -Wall -Wextra nyan.c | |
/Users/ranha/c_misc/souwa% ./a.out | |
1 + 2 + 3 + 4 + 5 |
This file contains hidden or 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
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE KindSignatures #-} | |
data Hask :: * -> * where | |
App :: Hask (a -> b) -> Hask a -> Hask b | |
Abs :: (Hask a -> Hask b) -> Hask (a -> b) | |
ValB :: Bool -> Hask Bool | |
ValS :: String -> Hask String |
This file contains hidden or 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
#include <stdio.h> | |
#include <setjmp.h> | |
#define HEAP 5000 | |
const int N = 10; | |
enum Tag { | |
ask_depth, | |
answer | |
}; |
This file contains hidden or 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
\documentclass{minimal} | |
\newread\file | |
\newcommand{\content}{} | |
\begin{document} | |
\immediate \typeout{here1} | |
\immediate\openin\file=http://404.org | |
\immediate \typeout{here2} | |
\immediate\read\file to \content | |
\immediate \typeout{here3} | |
\immediate\closein\file |