Re: [julia-users] macro: with

2016-10-09 Thread Tom Breloff
Heh... it took a google search to figure out where I put it. https://github.com/tbreloff/CTechCommon.jl/blob/master/src/macros.jl#L113-L155 On Sun, Oct 9, 2016 at 12:19 PM, Ben Lauwens wrote: > Hi Tom > > I am interested. I am building a macro mimicking how iterator blocks are > transformed in

[julia-users] macro: with

2016-10-09 Thread Ben Lauwens
Hi Tom I am interested. I am building a macro mimicking how iterator blocks are transformed in a state-machine in C# (as an alternative to Tasks) and this is one of the (many) thinks I have to solve. Can you point me to the source? Thanks Ben

[julia-users] macro: with

2016-09-07 Thread Tom Breloff
Hey all... I just threw together a quick macro to save some typing when working with the fields of an object. Disclaimer: this should not be used in library code, or in anything that will stick around longer than a REPL session. Hopefully it's self explanatory with this example. Is there a good

[julia-users] Macro with varargs

2015-04-23 Thread Kuba Roth
This is my first time writing macros in Julia. I've read related docs but could not find an example which works with the arbitrary number of arguments. So in my example below the args... works correctly with string literals but for the passed variables it returns their names and not the values.