unearthed the solution Nesting Macros 
<http://julia-programming-language.2336112.n4.nabble.com/Nesting-Macros-passing-Expressions-td28093.html>
 

```
macro sameAction(a, b)
      quote
            @macroWithVeryLongName($a, $b)
      end
end
```
(makes sense, pleased to see the obvious done right)




On Tuesday, May 24, 2016 at 1:17:36 AM UTC-4, Jeffrey Sarnoff wrote:
>
> I'm sure there is a way to pass macro arguments through to another macro 
> that takes the same arguments
>
> macro sameAction(a,b)
>    @macroWithVeryLongName(a,b) # I know this does not work
> end
>
> What fancy footsteps are required?
>
>
> On Tuesday, May 24, 2016 at 1:09:10 AM UTC-4, Ford Ox wrote:
>>
>> With function you could do:
>>
>> someverylongfunctionname() = 5
>> foo = someverylongfunctionname
>> foo()
>>
>> Idk why the same thing doesn't work for macros :(
>>
>> @someverylongmacroname() = :(5)
>> @foo = @someverylongmacroname
>> @foo()
>>
>>
>> Dne úterý 24. května 2016 6:58:22 UTC+2 Jeffrey Sarnoff napsal(a):
>>>
>>> I have a macro, macroWithVeryLongName(a,b), and I want a macro that 
>>> does the same thing that uses a short name for convenience, sameAction(a,b).
>>>
>>>
>>>

Reply via email to