Adam D. Ruppe
b9ea97d6e7
Changed code style of new openNetwork function to be more Phobos like
2010-08-14 17:54:02 +00:00
Adam D. Ruppe
3dedd2253e
commiting my first attempt at network support in the File interface.
2010-08-14 17:12:35 +00:00
Andrei Alexandrescu
f8d81d171e
Removed obsolete comments and tabs that suck
2010-08-08 17:34:25 +00:00
Walter Bright
73a1aec0bd
fix deadlock
2010-08-08 07:37:51 +00:00
Don Clugston
f4cf1fe01a
Prevent tuple indexing error message when you call writefln() with no parameters
2010-07-27 07:31:00 +00:00
Andrei Alexandrescu
67bae48bec
Eliminated unittests for built-in complex.
2010-07-12 00:51:02 +00:00
Andrei Alexandrescu
432e3fdfc8
Replaced std.contracts with std.exception throughout
2010-07-04 22:09:03 +00:00
Andrei Alexandrescu
9f1ec363bb
Implemented readf (yay)
2010-07-04 21:49:23 +00:00
Andrei Alexandrescu
fffb5555e6
Fixed writeln() regression
2010-06-10 18:50:29 +00:00
Andrei Alexandrescu
4beb6c3d0e
Fixed writeln() regression
2010-06-10 18:49:11 +00:00
Andrei Alexandrescu
2a81e69d86
Changed writeln to handle strings as a special case and just forward them to printf. Also writeln is special-cased for no arguments to use fputc.
2010-06-09 19:35:26 +00:00
Andrei Alexandrescu
38a75a6e41
Added an error message to enforce() in rawRead().
2010-06-08 17:41:13 +00:00
Masahiro Nakagawa
adf941f657
Replace static opCall with Constructor. static opCall for struct construction is old style.
2010-06-01 19:44:00 +00:00
Shin Fujishiro
4be7abb7f2
Made rawRead/rawWrite always operate in binary mode on Windows.
2010-05-29 06:00:53 +00:00
Masahiro Nakagawa
cab2b77249
opApply's delegate needs to be 'scope' for avoiding heap allocation
2010-05-18 10:58:01 +00:00
Shin Fujishiro
4e2d8f30fd
Added FreeBSD code.
2010-05-17 03:02:16 +00:00
Walter Bright
53a3eec534
invariant => immutable
2010-05-05 22:19:49 +00:00
Walter Bright
e790058bf4
invariant => immutable
2010-05-05 18:25:44 +00:00
Andrei Alexandrescu
2a9a6e336c
string, wstring are now bidirectional (not random) ranges
...
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
David Simcha
35e5e25943
Bug 3763: readlnImpl() horribly inefficient and overflows stack.
2010-02-19 03:20:08 +00:00
Walter Bright
c3347e001a
cannot have { } initializer with constructors
2009-12-20 20:34:47 +00:00
Walter Bright
d340dab9f3
inout to ref
2009-12-19 07:46:41 +00:00
Walter Bright
38796ee285
added auto ref functions
2009-12-16 08:55:42 +00:00
Andrei Alexandrescu
e7df1a56b7
Removed spurious assert(false) from StdioException
2009-11-30 01:08:21 +00:00
Andrei Alexandrescu
4ce6a1ed19
Fix for #3424 : Ref counting still doesn't work for std.stdio.File
2009-10-20 20:01:51 +00:00
Andrei Alexandrescu
0b4d65aa62
fixed doc example
2009-10-03 21:27:52 +00:00
Sean Kelly
747f3cf1e4
Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
...
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
0c142994d9
See changelog - bunch of bug fixes and a couple additions for release 2.032
2009-08-31 19:46:33 +00:00
Sean Kelly
add34f9f17
Changed a few version blocks from "linux" to "Posix" to enable OSX support.
2009-07-21 18:25:21 +00:00
Walter Bright
3a3130afa9
last minute fixes for 2.031
2009-07-06 17:32:48 +00:00
Andrei Alexandrescu
9e4e3cbe88
minor
2009-07-04 07:06:26 +00:00
Sean Kelly
446691a18a
Fixed compile error.
2009-06-08 22:18:08 +00:00
Walter Bright
7ef9d6f2b8
fix implicit casting
2009-06-04 23:36:03 +00:00
Walter Bright
eceae92256
2.030
2009-05-12 21:31:39 +00:00
Walter Bright
cf644a325a
add shared
2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
c4e066bac1
fix for bug 2880
2009-05-01 01:00:28 +00:00
Andrei Alexandrescu
196cfd9cac
added File.byChunk
2009-04-23 09:04:18 +00:00
Walter Bright
e646af89c0
no fopen64() on OSX
2009-04-19 23:30:27 +00:00
Andrei Alexandrescu
80e711a986
added File.getFP() with type FILE*
2009-04-19 20:39:08 +00:00
Andrei Alexandrescu
2951b4005f
added File.getFP()
2009-04-19 20:13:31 +00:00
Andrei Alexandrescu
6805bbc855
minor
2009-04-19 17:18:44 +00:00
Andrei Alexandrescu
dfef2a7214
Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back
2009-04-13 19:10:58 +00:00
Sean Kelly
67cf1f1be7
* Changed a few version(linux) blocks to version(Posix).
...
* Changed some declarations from explicit to auto.
* Changed "mkdir --parents" in Makefile to "mkdir -p" since OSX doesn't support the long version.
* REMAINING ISSUE: The "ln -sf" for installing the libraries at the end will fail if the DMD installation point is not owned by the user performing the build. A "sudo ln..." fixes this, but it still may not be ideal to have a system-level link to a user-level file. This should probably simply be copied instead. Also, this copy should perhaps be done manually or in an "install" step, since a user may want to build Phobos and test it out without affecting other users.
2009-04-09 18:32:01 +00:00
Andrei Alexandrescu
035af5a1b0
fileno only on Posix
2009-04-06 20:45:40 +00:00
Andrei Alexandrescu
d8e8dd36c5
* Major breaking changes: introduced the File struct. Now stdin, stdout, stderr are instances of the File struct.
2009-04-06 18:29:39 +00:00
Sean Kelly
777cdd3726
std.stdio will declare fopen64 for linux if it isn't declared by an import module.
2009-03-31 01:10:49 +00:00
Walter Bright
eb37fa62a6
fix phobos build breaks from new druntime
2009-03-30 21:01:32 +00:00
Sean Kelly
e108928d21
* Modified all std modules to use core.sys.posix in place of std.c.linux.
...
* Transformed std.c.linux.* into wrappers around core.sys.posix modules where appropriate.
* Added std.c.osx as the OSX equivalent of std.c.linux.
* Added std.c.osx.socket for OSX-specific socket declarations not covered by the Posix spec.
* Altered all makefiles to zip, etc, the new std.c.osx package.
2009-03-26 03:02:32 +00:00
Sean Kelly
c4a3aab657
The std.c modules now simply wrap the corresponding core.stdc modules to expose standard C declarations. std.c.os remains unchanged thus far, but will likely be altered as well. This unfortunately eliminates the auto doc generation for the std.c modules, since the modules are now largely empty. If the user wants to know what they contain, how the functions work, etc, I suggest for now simply referring to a C library spec--the core.stdc modules conform almost exactly to the C99 library definition.
2009-03-20 18:52:45 +00:00
Walter Bright
295a1633b7
fails unit tests
2009-02-14 17:47:38 +00:00