Bit of trouble understanding the following definition:
Let $M$ be a differentiable manifold. A differentiable function $\alpha : (-\epsilon,+\epsilon)\to M$ is called a differentiable curve in $M$. Suppose $\alpha(0) = p \in M$, and let $\mathcal{D}$ be the set of functions on $M$ that are differentiable at $p$. The tangent vector to the curve $\alpha$ at $t=0$ is a function $\alpha'(0):\mathcal{D}\to \mathbb{R}$ given by $$ \alpha'(0) f = \left( \frac{d(f \circ \alpha)}{dt} \right)_{t=0} $$
The definition continues but it's irrelevant for my question.
Because I don't know the image of the function $f$, but it is assumed to be differentiable shall I assume that $f$ is real valued somehow?
Definition 2.5. defines a mapping $\varphi$ from a manifold to another to be differentiable if its expression is differentiable. The expression is a well defined function from $\mathbb{R}^m$ to $\mathbb{R}^n$. However in the definition above of tangent vector I don't think $f$ is necessarely a function between two manifolds.
The question is how is the definition of $\alpha'(0)$ well defined to be a function from $\mathcal{D}$ to $\mathbb{R}$?