In many cases I have chunks of code that take up too much space and worsen 
readability of code in Julia. For example, I have some object on input, 
which has many parameters and their particular combination is often used in 
subsequent code. (In particular, I have an object containing Vector 
Autoregression, which has number of observations and lags, etc. and those 
are often combined in specifications of degrees of freedom, etc.) Is there 
some macro, which would allow me to specify some "variables" without 
allocating memory to those variables. I have in mind something like this:

type test
a::Int64
b::Float64
function test(c::Int64, d::Float64)
new(c, d)
end
end

function test1(ok::test)
a = ok.a
b = ok.b
return a + b
end

function test2(ok::test)
return ok.a + ok.b
end
 where I would like some macro to make test1 equal to test2.

Reply via email to