Commit graph

44 commits

Author SHA1 Message Date
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
k-hara
469750227d Fix for issue 6695.
This fix never changes any behaviors.
2011-10-06 17:02:41 +09:00
Andrei Alexandrescu
ee5c3a39e5 Fixed http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=139182 and unlisted bug in std.stdio.write 2011-06-21 09:41:59 -05:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
6f81c573f8 Fix for issue 5424 2011-01-23 22:26:29 -06: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
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Sean Kelly
be63564a50 Minimal support for shared types within a Variant. 2010-10-07 21:27:13 +00:00
Sean Kelly
ba51dffa9d Fixed Variant to accept types that are copy constructible but not default constructible. 2010-09-30 18:00:56 +00:00
Andrei Alexandrescu
5248dc6b3f Fix for bugzilla 2669 2010-09-26 20:33:55 +00:00
Andrei Alexandrescu
5a64b47d10 Fix for Bugzilla 2073 2010-09-26 04:35:12 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Sean Kelly
daded040c0 Fixed a segfault calling convertsTo for large types. 2010-06-19 05:58:20 +00:00
Sean Kelly
14ee7621a3 The void initializer for "ubyte[size] store" caused a compile error to be generated when assigning Variant.init to a variant value (voids have no value). Since initialization is taking place anyway it seems pointless to have the "=void" here so I'm removing it. 2010-06-18 05:53:46 +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
Masahiro Nakagawa
cab2b77249 opApply's delegate needs to be 'scope' for avoiding heap allocation 2010-05-18 10:58:01 +00:00
Walter Bright
9b4dcc1c0e invariant => immutable 2010-05-05 22:21:46 +00:00
Masahiro Nakagawa
a288172908 Add @property to length method. 2010-05-04 21:54:00 +00:00
Andrei Alexandrescu
5b3ad9feb8 Fixed assertion in line 1239 caused by array literals changing type from T[N] to T[] 2010-03-15 15:22:38 +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
489556e166 Bug 2802: VariantN.opCmp!(T) fails when T != VariantN 2009-12-01 13:46:11 +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
Andrei Alexandrescu
02109b631a bugzilla 2641 - std.variant Variant's check for "can append" is wrong 2009-07-07 17:06:49 +00:00
Andrei Alexandrescu
ae9d646184 minor 2009-07-04 07:10:49 +00:00
Andrei Alexandrescu
3a1f910906 minor 2009-04-06 04:48:50 +00:00
Walter Bright
288b76bd82 rollup 2008-12-12 10:45:36 +00:00
Walter Bright
9725636a64 get unit tests to work 2008-11-05 02:57:49 +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
734819923f now runs unittests with warnings on 2008-07-10 09:46:14 +00:00
Walter Bright
445350f2df fixed problems with typeof(type) 2008-07-02 21:08:32 +00:00
Walter Bright
52686b0f17 change opEquals to return bool 2008-06-25 06:25:40 +00:00
Andrei Alexandrescu
5c93aeb0cb Fixed bug 2074: Variant arithmetic operations fail 2008-05-16 21:20:24 +00:00
Andrei Alexandrescu
f06af5a1f2 Included link in author's signature 2008-02-19 06:16:04 +00:00
Brad Roberts
230a11e8df Remove a number of unreackable code warnings 2007-12-09 23:03:44 +00:00
Brad Roberts
cb06bef180 Merge candidate to trunk for std/variant.d 2007-11-28 04:46:43 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00
Andrei Alexandrescu
16e03d7c54 Fix for write(void[]) 2007-10-16 04:15:17 +00:00
Andrei Alexandrescu
ad73ee84d5 Bunch o' bugfixes 2007-10-15 21:14:09 +00:00
Walter Bright
0dfd92c96a added new modules to win32.mak, corrected Wiki page macros 2007-10-15 08:41:18 +00:00
Brad Roberts
280b92b636 Remove unreachable break statements 2007-10-15 05:19:20 +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