Commit graph

2711 commits

Author SHA1 Message Date
Vladimir Panteleev
f7e0387b6d std.algorithm: Fix the documentation of remove with pred
The description contradicted the example/unittest/actual behavior.
2012-02-22 17:37:56 +02:00
k-hara
66e13b2c27 Revert "Revert "Merge pull request #120 from 9rnsr/rvalue-struct-literal""
This reverts commit 8a6bfd2529.
2012-02-21 21:03:01 +09:00
Walter Bright
2d29da72d5 Merge branch 'master' of github.com:D-Programming-Language/phobos 2012-02-21 03:43:17 -08:00
k-hara
8283af10c1 Change opEquals signature to allow receiving rvalue. 2012-02-21 20:25:10 +09:00
Andrei Alexandrescu
62cc814a42 Merge pull request #435 from kennytm/pure_nullable
pure/nothrow/@safe for std.typecons.Nullable
2012-02-20 21:35:04 -08:00
Andrei Alexandrescu
fa927d18bf Merge pull request #438 from dsimcha/anyAll
Add all to std.algorithm and alias canFind to any for consistency with s...
2012-02-20 21:34:02 -08:00
Daniel Murphy
983349625f This only works because of a bug in dmd, and it was probably supposed to be a char literal. 2012-02-21 15:51:35 +11:00
dsimcha
2e919aa77c Schedule for deprecation the predicate-only version of canFind and make any handle that use case. 2012-02-20 23:12:28 -05:00
Andrei Alexandrescu
91c4363398 Merge pull request #365 from dsimcha/opDollar
Add opDollar aliases for std.range and std.algorithm.
2012-02-20 19:45:38 -08:00
Walter Bright
8a6bfd2529 Revert "Merge pull request #120 from 9rnsr/rvalue-struct-literal"
This reverts commit d780d9df0f, reversing
changes made to c6ae86ca4f.
2012-02-20 19:43:12 -08:00
Walter Bright
d780d9df0f Merge pull request #120 from 9rnsr/rvalue-struct-literal
Supplemental changes of dmd/pull/41
2012-02-20 19:24:39 -08:00
Andrei Alexandrescu
c6ae86ca4f Merge pull request #440 from CyberShadow/std-base64
std.base64: Fix invariants when decoding truncated strings
2012-02-20 08:56:14 -08:00
Denis Shelomovskij
296de58334 cast(string) is neither necessary nor safe
*`curl_easy_strerror` isn't documented as returning immutable string
2012-02-20 17:05:12 +04:00
Don Clugston
37631fc1ea Merge pull request #444 from yebblies/issue3354
Missed one.
2012-02-20 04:18:52 -08:00
Daniel Murphy
bcd85585d6 Missed one. 2012-02-20 23:05:49 +11:00
Don Clugston
a6d8be2ab3 Merge pull request #443 from yebblies/issue3354
There is no two argument version of fstp
(That form is in some of the old Intel manuals, but it's redundant).
2012-02-20 00:58:14 -08:00
Daniel Murphy
3ba8e17d99 There is no two argument version of fstp. 2012-02-20 17:00:41 +11:00
dsimcha
4c9d907fcd Optimize fft to take advantage of symmetry for pure real FFTs. 2012-02-19 20:41:59 -05:00
dsimcha
f7c6e665b7 Fix unlisted bug in std.typecons.Scoped. writeln() has no place in production code in these cases and wasn't properly imported either. 2012-02-19 13:15:43 -05:00
Vladimir Panteleev
9214e9e764 std.base64: Fix invariants when decoding truncated strings
We should never throw Errors on malformed data - especially since the
module does not provide validation facilities. Base64 is widely used on
the web, so encoded strings need to be treated like user input.

The added unittests are purposefully vague. This is to allow changing
the implementation within the spec (whether to throw, ignore or try
parsing trailing bytes).
2012-02-19 19:14:38 +02:00
dsimcha
d1938e5563 Add all to std.algorithm and alias canFind to any for consistency with standard functional programming terminology. 2012-02-18 16:07:16 -05:00
Andrei Alexandrescu
49e4bb0ef0 Merge pull request #406 from denis-sh/get-rid-of-win9x-support
Get rid of win9x support
2012-02-18 12:32:37 -08:00
Andrei Alexandrescu
44b2f8e3af Merge pull request #434 from jcao219/master
This should make CurlException error string messages more informative
2012-02-18 12:31:28 -08:00
Andrei Alexandrescu
bdba8b7644 Merge pull request #420 from kennytm/pure_utf
Add 'pure' attribute to toUTF8, toUTF16 and toUTF32.
2012-02-18 12:30:39 -08:00
Andrei Alexandrescu
2f39ce1b82 Merge pull request #422 from CyberShadow/std-file-exists
std.file: Use stat instead of access to check file existence on POSIX
2012-02-18 11:36:06 -08:00
Vladimir Panteleev
f999f6ba0e std.file: Use stat instead of access to check file existence on POSIX
The reason for this change is the quirky behavior of access for SUID
programs: a file may not appear to "exist", despite that the program
would be able to open it just fine. The behavior in question is described
as follows in the access man page:

> The check is done using the calling process's real UID and GID, rather
> than the effective IDs as is done when actually attempting an operation
> (e.g., open(2)) on the file. This allows set-user-ID programs to easily
> determine the invoking user's authority.

While various operating systems provide eaccess or euidaccess functions,
these are not part of POSIX - so it's safer to use stat instead.
2012-02-18 21:35:04 +02:00
Andrei Alexandrescu
1b871d944c Merge pull request #425 from qchikara/myfeature
Issue 7460 - std.windows.registry reports a false exception message
2012-02-18 10:52:56 -08:00
Jimmy Cao
8d02b47947 core.stdc.*string*.strlen 2012-02-18 12:49:52 -06:00
Andrei Alexandrescu
3a03376c7d Merge pull request #426 from 9rnsr/fix7476
Issue 7476 - Write(ln) functions no longer accept retro range
2012-02-18 10:47:00 -08:00
Jimmy Cao
1c50ab9659 avoid 1 allocation (per suggestion from Andrei) 2012-02-18 12:43:25 -06:00
Andrei Alexandrescu
504cc5e21e Merge pull request #431 from dawgfoto/master
use module scope for imports...
2012-02-18 10:42:20 -08:00
Walter Bright
786284e70b more const correct 2012-02-17 15:00:49 -08:00
Walter Bright
931f89fb38 Merge branch 'master' of github.com:D-Programming-Language/phobos 2012-02-17 12:40:00 -08:00
Walter Bright
1bbdb1b958 don't reinvent hash 2012-02-17 12:39:44 -08:00
KennyTM~
9334e2adbf Make Nullable pure/nothrow/@safe/const when possible. 2012-02-15 23:07:50 +08:00
Jimmy Cao
b801b26d41 Make exceptions more informative 2012-02-14 23:49:32 -06:00
dawg
e36dbeea6c use module scope for imports...
...because the std imports in the Base class are private (see 7491).
2012-02-13 16:55:37 +01:00
Hara Kenji
79a270978e Merge pull request #427 from klickverbot/format-error
Better pointer format specifier mismatch message.
2012-02-11 17:25:57 -08:00
dsimcha
3f510e39f1 Bug 7484: Overlapping array copy. 2012-02-11 19:26:09 -05:00
jmdavis
88faac2475 Moved removals of deprecated symbols from July to August.
The release didn't happen in January, so July isn't a 6 month
deprecation period anymore.
2012-02-11 02:48:49 -08:00
jmdavis
091609ca1e Moved February deprecations to March.
Having the January deprecations and February deprecations in the same
month seems a bit much to me, since we managed to have both of those
months have quite a few, whereas the next few months have very few if
any. And we're close to release too, so I'd prefer to avoid causing
issues by deprecating them now.
2012-02-11 02:44:46 -08:00
jmdavis
fd0982d88a Fixed some deprecations in std.string. 2012-02-11 02:39:53 -08:00
David Nadlinger
fa5250874c Better pointer format specifier mismatch message.
Fixes issue 7480.
2012-02-11 06:50:48 +01:00
k-hara
90497eeede Issue 7476 - Write(ln) functions no longer accept retro range 2012-02-10 21:57:58 +09:00
Denis Shelomovskij
efc9da711c Remove Windows 3.x and Win9x enforcements from std.mmfile 2012-02-10 14:28:14 +04:00
Denis Shelomovskij
8a92201226 Fix minor memory wasting in std.windows.registry 2012-02-10 14:28:14 +04:00
Denis Shelomovskij
4d451796fe Fix unsafe *A function using
* Supersede unsafe ExpandEnvironmentStringsA using by its *W version
* Remove an outdated commented out function
* Remove std.windows.charset import which have become unnecessary
2012-02-10 14:28:14 +04:00
Denis Shelomovskij
f01bcb71f5 Remove unnecessary stuff from std.windows.registry
* remove stuff which have become unnecessary because of previous commit from std.windows.registry
2012-02-10 14:28:13 +04:00
Denis Shelomovskij
99ab2b6175 Remove __file.d and it's using
* remove `useWfuncs` using
* remove std.__file using
* remove __file.d
* remove variables which have become unnecessary
* remove std.windows.charset import and alias in file.d
2012-02-10 14:27:34 +04:00
Walter Bright
33608964a8 Merge pull request #424 from blackwhale/master
Amend of a fix in pull #377
2012-02-09 21:04:07 -08:00