# Defining a solver type with macros

**URL:** <https://discourse.julialang.org/t/defining-a-solver-type-with-macros/5813>\
**Category:** General Usage\
**Tags:** question, macros\
**Created:** [September 10, 2017, 10:07pm UTC](https://discourse.julialang.org/t/defining-a-solver-type-with-macros/5813 "2017-09-10T22:07:01Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [September 12, 2017, 8:40pm UTC](https://discourse.julialang.org/t/defining-a-solver-type-with-macros/5813/21 "2017-09-12T20:40:18Z")

</div>

I will create a separate thread for this question, this post is too long already:

> [@Macros and modules](https://discourse.julialang.org/t/macros-and-modules/5859):
>
> Suppose I have a base package with abstract types and interfaces called BasePackage, and a second package with developer tools that builds on top of the base package called DevTools. In the latter package, I define helper macros to facilitate the creation of new solvers with similar interface: DEVELOPER TOOLS ### BASE PACKAGE module BasePackage abstract type AbstractSolver end abstract type AbstractEstimationSolver \<: AbstractSolver end abstract type AbstractSimulationSolver \<: Ab…

[Previous page](https://discourse.julialang.org/t/defining-a-solver-type-with-macros/5813.md?page=1)
