他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.
ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.
D言語のmainはCとは違い以下のようなシグネチャです.
% bxexpl3ptex.sty | |
%% package declaration | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{bxexpl3ptex}[2015/07/28 v0.3] | |
%% hack for \ifpdfprimitive | |
\let\bxqxp@postproc\relax | |
\expandafter\ifx\csname ifpdfprimitive\endcsname\relax | |
\expandafter\@firstofone |
// Written in the D programming language. | |
/** | |
* High peformance downloader | |
* | |
* Implemented according to <a href="http://yusukebe.com/archives/20120229/072808.html">this implementation</a>. | |
* | |
* Example: | |
* ----- | |
* dmd -L-lcurl -run downloader.d |
# ファイル構成: | |
# root | |
# |- src :*.cppが入っている | |
# |- bin :ここに*.exeが生成される | |
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 | |
CPPS = $(wildcard src/*.cpp) | |
OBJS = $(CPPS:.cpp=.o) |