Commit graph

60 commits

Author SHA1 Message Date
Daniel Murphy
1590a5cc38 Issue 6572 - Deprecate typedef
Remove use of deprecated typedef from phobos.  This mostly consists of changing typedef to alias, and disabling unittests that require typedef.  One change to std.registry is needed to work around a bug in typedef (6571).
2011-08-30 13:22:10 +10:00
jmdavis
28ccdeb8dd Deprecated old date/time stuff. 2011-08-09 00:22:39 -07:00
jmdavis
a6ef12b6c9 Renamed endOfMonthDay to daysInMonth.
endOfMonthDay is too close to endOfMonth, and std.date had daysInMonth
(which amounts to the same thing), so I'm renaming endOfMonthDay to
daysInMonth. So, endOfMonthDay is now scheduled for deprecation. I also
adjusted the various deprecation messages related to std.datetime so
that they included the month when the items in question would be deprecated.
2011-06-25 09:03:48 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Jonathan M Davis
d8488a9865 Phobos has now been changed to use std.datetime. Also, bug# 3848 has been fixed.
std.gregorian, std.date, and std.dateparse have all been marked as
scheduled for deprecation. Everywhere (except for std.file) which was
using std.date is now using std.datetime. std.file is now using
std.datetime but has a number of functions still using d_time but which
are marked as scheduled for deprecation. I tried to give as many as I
could pragmas indicating that they were scheduled for deprecation, but
at the moment, that requires that a function be a templated function, and
I couldn't templatize all of them. So, some functions in std.file are
only marked as scheduled for deprecation in their documentation and will
not give any warning on compilation.

I had to rename several functions in std.file in order to avoid making
any breaking changes. And since I was already having to mess with
function names, it seemed like a good time to change the names of a
number of the functions in std.file to use proper capitalization
(such as changing isdir to isDir) as has been discussed and overwhelmingly
supported in the newsgroup with regards to std.string. And since I was
making those changes, it seemed like a good time to fix bug# 3848
(functions in std.file don't take symbolic links into account) as well.
So, std.file should now deal with symlinks properly.

The issue which Andrei brought up with +VERSION causing the std.datetime
unit tests to fail on OSX has been fixed as well.
2011-01-19 11:10:18 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Shin Fujishiro
58e3ae0a8a This would fix the runnable/testdate failure. 2010-09-27 05:18:23 +00:00
Andrei Alexandrescu
f978014c36 Fix for bugzilla 2965 2010-09-26 23:15:17 +00:00
Adam D. Ruppe
086fafddb3 Documentation improvements by Pedro Rodrigues 2010-08-17 16:47:26 +00:00
Andrei Alexandrescu
d2aa5efe27 Readded toString as a deprecated alias to UTCtoString 2010-08-08 07:37:02 +00:00
Andrei Alexandrescu
861aeece59 Changed toString(d_time) to UTCtoString(d_time). d_time being just an alias for an integral, the old function conflicted with others. 2010-07-28 07:55:21 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
SHOO
3948396b96 Mark deprecated to unittest 2010-05-23 02:07:56 +00:00
Shin Fujishiro
4e2d8f30fd Added FreeBSD code. 2010-05-17 03:02:16 +00:00
Andrei Alexandrescu
c12b96b726 Implementation change and unittest for isLeapYear and
daysInYear. Made both pure as well.
2009-10-26 22:44:01 +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
Walter Bright
3a3130afa9 last minute fixes for 2.031 2009-07-06 17:32:48 +00:00
Andrei Alexandrescu
2a18575d11 changed signature of benchmark to return ulong[] instead of uint[]. 2009-07-04 06:54:38 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
1b28fbcc4b added deprecated aliases for TicksPerSecond et al 2009-04-19 20:13:51 +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
Andrei Alexandrescu
0bfb918025 capitalization 2009-04-11 20:51:18 +00:00
Andrei Alexandrescu
743d8167c8 * Added a benchmark function that allows for simple timing measurements. 2009-04-06 05:58:23 +00:00
Sean Kelly
0b1bf3b1d5 2009-03-26 15:13:53 +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
Don Clugston
d3b2166a1b Allow phobos to compile with -w. 2009-02-27 15:31:48 +00:00
Walter Bright
295a1633b7 fails unit tests 2009-02-14 17:47:38 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Walter Bright
288b76bd82 rollup 2008-12-12 10:45:36 +00:00
Walter Bright
3d1b760496 update to reflect this is now a reference type 2008-11-04 22:08:40 +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
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
d90858f401 merge branches/phobos-1.x@263 through branches/phobos-1.x@266 2007-09-10 07:35:41 +00:00
Brad Roberts
15839eb802 merge branches/phobos-1.x@259 through branches/phobos-1.x@261 2007-09-10 07:18:32 +00:00
Brad Roberts
9d8828a349 merge branches/phobos-1.x@256 through branches/phobos-1.x@259 2007-09-10 07:13:30 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
2992740ec3 phobos 1.013 2007-09-10 06:05:14 +00:00
Brad Roberts
7a177fcf41 phobos 0.178 2007-09-10 05:37:36 +00:00
Brad Roberts
7371485bf8 phobos 0.177 2007-09-10 05:36:45 +00:00
Brad Roberts
e001ab7bfe phobos 0.174 2007-09-10 05:34:58 +00:00
Brad Roberts
613c86dca9 phobos 0.168 2007-09-10 05:31:04 +00:00
Brad Roberts
b76c21ccf9 phobos 0.161 2007-09-10 05:24:49 +00:00
Brad Roberts
f3114b30a0 phobos 0.155 2007-09-10 05:19:06 +00:00
Brad Roberts
164dc8159b phobos 0.153 2007-09-10 05:17:15 +00:00
Brad Roberts
d6ac036aff phobos 0.149 2007-09-10 05:11:52 +00:00
Brad Roberts
72a09be429 phobos 0.146 2007-09-10 05:02:39 +00:00
Brad Roberts
98e28b66e3 phobos 0.140 2007-09-10 04:57:07 +00:00
Brad Roberts
99870f81a8 phobos 0.135 2007-09-10 04:51:26 +00:00
Brad Roberts
119d8efbac phobos 0.116 2007-09-10 04:34:51 +00:00