Permalink
Browse files

Capitalize `pointerTarget`'s first letter

  • Loading branch information...
1 parent 8fda49a commit 20420759cbd7cb333413b696db3a53c4971d7d53 @denis-sh denis-sh committed Apr 7, 2012
Showing with 10 additions and 7 deletions.
  1. +2 −2 std/range.d
  2. +8 −5 std/traits.d
View
@@ -574,8 +574,8 @@ accepting an $(D E[]).))
void put(R, E)(ref R r, E e)
{
static if (hasMember!(R, "put") ||
- (isPointer!R && is(pointerTarget!R == struct) &&
- hasMember!(pointerTarget!R, "put")))
+ (isPointer!R && is(PointerTarget!R == struct) &&
+ hasMember!(PointerTarget!R, "put")))
{
// commit to using the "put" method
static if (!isArray!R && is(typeof(r.put(e))))
View
@@ -3443,17 +3443,20 @@ unittest
/**
Returns the target type of a pointer.
*/
-template pointerTarget(T : T*)
+template PointerTarget(T : T*)
{
- alias T pointerTarget;
+ alias T PointerTarget;
}
+/// $(RED Scheduled for deprecation. Please use $(LREF PointerTarget) instead.)
+alias PointerTarget pointerTarget;
+
unittest
{
- static assert( is(pointerTarget!(int*) == int));
- static assert( is(pointerTarget!(long*) == long));
+ static assert( is(PointerTarget!(int*) == int));
+ static assert( is(PointerTarget!(long*) == long));
- static assert(!is(pointerTarget!int));
+ static assert(!is(PointerTarget!int));
}
/**

0 comments on commit 2042075

Please sign in to comment.