# Basic concept about multiple dispatch

**URL:** <https://discourse.julialang.org/t/basic-concept-about-multiple-dispatch/15270>\
**Category:** New to Julia\
**Created:** [September 21, 2018, 11:21am UTC](https://discourse.julialang.org/t/basic-concept-about-multiple-dispatch/15270 "2018-09-21T11:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [September 21, 2018, 11:32am UTC](https://discourse.julialang.org/t/basic-concept-about-multiple-dispatch/15270/4 "2018-09-21T11:32:26Z")

</div>

Just like two different types can have the same name, say

```julia
module A
struct AB end
end
module B
struct AB end
end

```

so can functions

```julia
module A
f() = 1
end
module B
f() = 1
end

```

Check this thread:

> [@Two modules with the same exported function name but different signature](https://discourse.julialang.org/t/two-modules-with-the-same-exported-function-name-but-different-signature/15231):
>
> Hello, I have the following situation which I did not expected: defining a fucntion with the same name but different signature in two modules like this: ## Module RawTables function save(T::RawTable, name\_pref::String) ... end ## Module RawPlots function save(T::RawPlot, name\_pref::String) ... end and using them together results in WARNING: both RawPlots and RawTables export "save"; uses of it in module Main must be qualified I thought multiple dispatch is exactly good in being able to res…

---

_[View the full topic](https://discourse.julialang.org/t/basic-concept-about-multiple-dispatch/15270)._
