For the usage goal, have you seen HDF5.jl?

https://github.com/timholy/HDF5.jl#quickstart

The @save and @load macros will do this for you (there are some limitations
- but Tim, Simon, et al. have pushed things about as far as they possibly
can at present).

On Wed, Dec 17, 2014 at 5:37 AM, Zeta Convex <[email protected]> wrote:
>
> I want to be able to write:
>     @makevar("life", 42)
> which will expand to
>    life = 42
> How do I do this?
>
> Why do I want to do it? Because it would be cool to have a feature like in
> Octave where I could load an HDF5 file, and it automatically sets the
> variables from the file.
>

Reply via email to