Commit graph

171 commits

Author SHA1 Message Date
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Jonathan M Davis
d34164a2ea Move some deprecations along. 2015-11-26 00:28:38 -08:00
AndrejMitrovic
48701fcd1f Merge pull request #3624 from quickfur/enforce_doc2
[dox] Revise confusing wording of "if !value is false" in std.exception.enforce
2015-10-19 23:18:22 +02:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
H. S. Teoh
8623ba3285 Revise confusing wording of "if !value is false".
Improve wording.
2015-09-02 09:50:26 -07:00
Dmitry Olshansky
5829606b34 Merge pull request #3597 from quickfur/pointsTo
[dox] Improve docs for std.exception.{does,may}PointTo
2015-09-02 10:32:07 +03:00
Dmitry Olshansky
535db5ea02 Merge pull request #3602 from jmdavis/deprecations
Move along some of the deprecations.
2015-08-31 10:24:09 +03:00
H. S. Teoh
9fa2cac3fc Fix missing ddoc'd unittests for {does,may}PointTo.
Apparently private function was inadvertently inserted between the
original pointsTo implementation and its ddoc'd unittests, causing ddoc
not to pick them up correctly. So reordered the private function and
deprecated alias so that the unittests immediately follow the pointsTo
overloads.

Also, did some cosmetic fixups in the unittests to make them nicer to
read as docs.
2015-08-30 17:55:36 -07:00
H. S. Teoh
c27cc05288 Update docs not to refer to deprecated pointsTo(). 2015-08-30 17:44:08 -07:00
H. S. Teoh
31b0f9c8cd Improve docs for std.exception.{does,may}PointTo
Add Params: and Returns:.

Reorder function overloads so that ddoc merges them properly in the
output.
2015-08-30 17:44:08 -07:00
Jonathan M Davis
7b4abd0aa7 Move deprecations along. 2015-08-29 17:01:23 -07:00
H. S. Teoh
26b26e3063 Add standard Returns: section to std.exception.ifThrown() 2015-08-28 07:55:50 -07:00
Daniel Murphy
0da2ea04de Merge pull request #3590 from quickfur/std_exception_assume
[dox] Add Params: and Returns: to assumeUnique and assumeWontThrow
2015-08-28 13:16:23 +10:00
H. S. Teoh
12ccd7518f No double negatives! 2015-08-27 10:45:18 -07:00
H. S. Teoh
4f5ae2f195 [dox] Add Params: and Returns: to assumeUnique and assumeWontThrow 2015-08-27 10:14:15 -07:00
H. S. Teoh
e4a7a63d5c [dox] Add Params: and Returns: to the various enforce() overloads. 2015-08-27 09:53:14 -07:00
Robert burner Schadek
6f5983471d assertNotThrown can call expressions that return useful data
this allows the data to be returned from assertNotThrown

returns block
2015-07-16 00:19:27 +02:00
k-hara
4f2e16ed39 fix Issue 14685 - Silent incorrect behavior with enforce and custom exception 2015-06-22 21:40:16 +09:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Daniel Murphy
ebc90dc149 Merge pull request #2657 from joakim-noah/separate_glibc
Separate linux kernel, glibc, and bionic APIs where appropriate
2015-05-30 08:22:30 -06:00
Robert burner Schadek
c4b3d06618 exception: union closing brace doesn't semicolon 2015-05-28 18:41:25 +02:00
Joakim
3352c90c2e Separate linux kernel, glibc, and bionic APIs where appropriate 2015-05-27 21:54:52 -05:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
a76d90c927 Phobos should only mention tuple as std.typecons.Tuple 2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Andrei Alexandrescu
11b32b56e5 Fix links 2015-02-16 13:39:18 -08:00
Jakob Ovrum
58b59a1d82 Add pure, nothrow and @safe to std.exception.handle's unittests where appropriate 2015-02-11 16:15:29 +09:00
Jakob Ovrum
6154858502 Add optional index argument to the opIndex handler of std.exception.handle 2015-02-11 16:15:21 +09:00
Jakob Ovrum
a0086a9e2f Add RangePrimitive.access and RangePrimitive.pop pseudo-primitives 2015-02-11 16:15:11 +09:00
Jakob Ovrum
4265c4e379 Change std.exception.handle to not use AliasThis 2015-02-11 12:15:44 +09:00
k-hara
611a9a1b9b fix property enforcement 2015-02-10 01:00:36 +09:00
Jakob Ovrum
36cf60b4bf Re-enabled opSlice for std.exception.handle now that bug 14057 is fixed 2015-01-31 14:52:35 +09:00
Jakob Ovrum
5e9006b908 Cleanup of #2724
Various semantic improvements
Documentation improvements
Disabled opSlice due to issue 14057
2015-01-27 13:20:33 +09:00
Robert burner Schadek
a570d9e7bc handle rework
some little style fixup

some update at less verbose tests

not sure if that is my fault

some fixes

some more fixes

docu fixes

removed else branches by alias this

quickfur fixes
2015-01-25 22:32:06 +01:00
H. S. Teoh
7514f8bd9c Fix spelling error in docs. 2015-01-07 16:45:33 -08:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
591d616dd5 avoid triggering issue 13745 in further improvements to come 2014-11-20 23:10:41 +03:00
Ilya Yaroshenko
efb880f651 move format to std.format
The reason is to do not import `std.uni` tables, `std.string` and
probably `std.algorithm`. Note that format is used in CTFE code and
`Exception` handing.

 And it is more comfortable to import `format` from `std.format`.

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

update std.conv scope import

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

move sfromat

add public import of sformat

use std.uni
2014-11-18 22:14:28 +03:00
Ilya Yaroshenko
c7e3c0f025 added scope import 2014-11-11 22:57:09 +03:00
Ilya Yaroshenko
6e27f89393 std.exception: clean imports
use format

use empty

use empty

use dup

remove tabs
2014-11-11 19:14:09 +03:00
Vladimir Panteleev
b1418c958b fix Issue 13450 - Add WindowsException and wenforce to std.exception
Also expose ErrnoException's errno field as a documented property
for consistency.
2014-09-11 15:41:20 +00:00
monarchdodra
fa10a4ec77 Use reinterpret cast is [does|may]PointTo
Instead of a straight up cast. Avoids problems related to opCast
or alias this, such as those in:
http://forum.dlang.org/thread/vldwvnuivsfwjozqiuup@forum.dlang.org
2014-08-30 10:25:39 +02:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
Dicebot
815c8e327e Merge enforceEx with enforce
Makes it possible to call `enforce!MyException` instead of `enforceEx!MyException`, eliminating
redundant notation. Old enforceEx is not deprecated but removed from documentation examples.
2014-06-30 12:37:25 +02:00
David Nadlinger
fd67ac9fb2 Merge pull request #2265 from jmdavis/exception
Slight improvement to enforceEx's constraints and its documentation.
2014-06-23 08:36:55 +02:00
jmdavis
7b6123f6a6 Slight improvement to enforceEx's constraints and its documentation. 2014-06-21 23:27:37 -07:00
jmdavis
c800058aca Move along some overdue deprecations. 2014-06-20 04:37:13 -07:00
monarchdodra
9ae2084e53 Add interface test in pointsTo 2014-05-31 13:44:11 +02:00
monarchdodra
1210f1beff Rewrite pointsTo documentation 2014-05-14 21:59:02 +02:00