I'm trying to resolve what seems like an inconsistency between the epsilon-delta definition of continuity and the limit-based definition ($\lim_{x->c} f(x) = f(c)$). Assume $c$ is a cluster point. There are many questions about what happens when there are singularities, for example asking whether $\frac{1}{x}$ is continuous at $x=0$, and the answers indicate that continuity is relative to the function's domain (for example here and here.) However, what happens when the function is defined at that point? For example, take $f(x) = \frac{1}{x}, x\neq0$ but $f(x)=0$ at $x=0$. According to the epsilon-delta definition of continuity this function would be continuous, because at any point you can find an open ball of sufficiently small radius $\delta$ in the domain for the corresponding radius $\epsilon$ in the function's range (because we require that $\epsilon>0$, not $\epsilon\geq0$ in this definition). However, the limit is clearly not equal to the function value at 0, so by that definition the function would be discontinuous. Another example is the example of a removable discontinuity on Wikipedia. Is this just a question of being clear on which definition is used in a given context? I can imagine that in many contexts the distinction between these definitions could matter.
I've found many similar questions, but none that quite address my question (this one is the closest).