Commit graph

37 commits

Author SHA1 Message Date
Walter Bright
cad4405897 remove minit, add druntime.lib 2008-10-12 19:07:59 +00:00
Sean Kelly
edb5c5003e This commit includes all the changes necessary for Phobos to run against druntime. Here is a sucinct list of the changes made:
* Removed gcstats.  Garbage collector statistics will be avaialable in durintime's 'memory' module.
    * Removed object.d.  This module is replaced by the object.d provided by druntime.
    * Removed std.array.  To trap an array bounds error, import 'exception' from druntime and catch ArrayBoundsException.
    * Removed std.asserterror.  To trap an asertion failure, import 'exception' from druntime and catch AssertException.
    * Removed std.gc.  To interact with the garbage collector, import 'memory' from druntime.
    * Removed std.hiddenfunc.  No equivalent exception is currently exposed by druntime, but if one is exposed it will be called HiddenFuncException and be declared in 'exception'.
    * Removed std.moduleinit.  druntime declares ModuleInfo in object.d, so it is implicitly availble without importing.
    * Removed std.outofmemory.  To trap an out of memory error, import 'exception' from druntime and catch OutOfMemoryException.
    * Removed std.switcherr.  To trap a switch error, import 'exception' from druntime and catch SwitchException.
    * Removed std.synchro.  This functionality will exist within druintime.
    * Removed std.thread.  A Thread class is available within druntime's 'thread' module.  An interface comparison will be provided separately.
    * Removed std.typeinfo.  The classes defined in this package are for runtime use and should not be visible to the user.

The prior version of Phobos has been archived in tags/phobos-2.019 if needed.
2008-10-11 00:56:40 +00:00
Walter Bright
a86648ade5 extensive addition to array op support 2008-07-21 08:24:04 +00:00
Andrei Alexandrescu
de7024b233 $(LI Improved $(B std.stdio.chunks) to take an iteration tally in addition to the chunk) 2008-07-08 03:29:02 +00:00
Walter Bright
445350f2df fixed problems with typeof(type) 2008-07-02 21:08:32 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Walter Bright
a2cc38709d corrected unit tests for Windows 2008-05-03 08:53:49 +00:00
Andrei Alexandrescu
d3ec611fd4 Minor changes: changed const to enum wherever possible in order to minimize object file sizes. 2008-03-06 20:23:54 +00:00
Walter Bright
f77d161d0a no popen on Windows 2008-02-20 11:45:31 +00:00
Andrei Alexandrescu
29f3cc23f7 std.math: minor change in approxEqual.
std.contracts: added functions pointsTo()

std.numeric: minor unittest fixes.

std.bitmanip: fixed code bloat issue, reintroduced FloatRep and DoubleRep.

std.conv: minor simplification of implementation.

std.regexp: added reference to ECMA standard in the documentation.

std.getopt: changed return type from bool to void, error is signaled by use of exceptions.

std.functional: added unaryFun, binaryFun, adjoin.

std.string: updated documentation, changed code to compile with warnings enabled.

std.traits: changed FieldTypeTuple; added RepresentationTypeTuple, hasAliasing; fixed bug 1826; added call to flush() from within write; fixed unlisted bug in lines().

std.algorithm: added map, reduce, filter, inPlace, move, swap, overwriteAdjacent, find, findRange, findBoyerMoore, findAdjacent, findAmong, findAmongSorted, canFind, canFindAmong, canFindAmongSorted, count, equal, overlap, min, max, mismatch, EditOp, none, substitute, insert, remove, levenshteinDistance, levenshteinDistanceAndPath, copy, copyIf, iterSwap, swapRanges, reverse, rotate, SwapStrategy, Unstable, Semistable, Stable, eliminate, partition, nthElement, sort, schwartzSort, partialSort, isSorted, makeIndex, schwartzMakeIndex, lowerBound, upperBound, equalRange, canFindSorted.

std.thread: fixed so it compiles with warnings enabled.

std.file: made getSize() faster under Linux.

std.random: fixed so it compiles with warnings enabled; improved function uniform so it deduces type generated from its arguments.

std.format: added fixes to make formatting work with const data.

std.path: minor documentation changes.
2008-02-19 07:00:56 +00:00
Walter Bright
6d5e6ac95a fix readln bug for translated mode 2008-02-15 01:22:26 +00:00
Walter Bright
ed3992d9db bugzilla 1749 2007-12-28 10:27:07 +00:00
Brad Roberts
83bde3fc89 Manually cleanup remaining differences between candidate and trunk. std/variant.d is the only file with differences remaining. 2007-11-27 21:10:16 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00
Andrei Alexandrescu
fb72d9e1f0 Got rid of a ton of duplication that seemed innocuous at first. 2007-10-16 06:40:28 +00:00
Walter Bright
354beab065 please stop reverting the change 2007-10-16 06:06:12 +00:00
Andrei Alexandrescu
16e03d7c54 Fix for write(void[]) 2007-10-16 04:15:17 +00:00
Andrei Alexandrescu
ca26afec10 Few more bugfixes 2007-10-16 03:29:06 +00:00
Andrei Alexandrescu
ad73ee84d5 Bunch o' bugfixes 2007-10-15 21:14:09 +00:00
Walter Bright
6fa6a04ff4 stdio => stdout 2007-10-15 06:54:36 +00:00
Walter Bright
b3e542b19b stdio should be stdout 2007-10-15 06:13:02 +00:00
Brad Roberts
26c6571ff5 merge r404:415 from candidate to trunk 2007-10-15 05:57:34 +00:00
Brad Roberts
b261c557f0 merge r397:404 from candidate to trunk
-- add static assert to writef[ln] to clean up the error message
  -- clean up null object reporting
2007-10-15 03:12:14 +00:00
Brad Roberts
a9bc53273c merge r387:397 from candidate to trunk
-- new module std.contracts
  -- migrate callers to it where appropriate
2007-10-14 23:04:19 +00:00
Brad Roberts
eec6be69ed Merge r297:387 from candidate to trunk.
-- add std.getopt
  -- add std.variant
  -- switch strings over to be invariant rather than const
  -- hopefully the last big linux makefile overhaul
  -- fix for bug 1579: write[ln] fails for obj.toString()
  -- fix negative precision handling in std.format
  -- add some file and directory iterator helpers
  -- among other little changes here and there...
2007-10-14 09:22:50 +00:00
Brad Roberts
0bb659bfb2 Merge candidate branch r280:297 to trunk 2007-10-05 01:13:14 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
60545694c7 phobos 1.011 2007-09-10 06:03:58 +00:00
Brad Roberts
8d7ec1bb34 phobos 1.010 2007-09-10 06:03:28 +00:00
Brad Roberts
1de7f2e4ba phobos 1.007 2007-09-10 06:02:02 +00:00
Brad Roberts
00fe9a970d phobos 0.175 2007-09-10 05:35:36 +00:00
Brad Roberts
b7589f2e97 phobos 0.163 2007-09-10 05:26:27 +00:00
Brad Roberts
b029d8c452 phobos 0.147 2007-09-10 05:03:22 +00:00
Brad Roberts
071f592aa2 phobos 0.129 2007-09-10 04:45:59 +00:00
Brad Roberts
f34b5cb83f phobos 0.107 2007-09-10 04:23:14 +00:00
Brad Roberts
2fd7d60c13 phobos 0.96 2007-09-10 04:05:01 +00:00
Brad Roberts
5a51fc091f phobos 0.95 2007-09-10 04:04:16 +00:00