| Ah, yes, thanks, it makes sense to me too now.
I was trying to create a minimal example of a problem I discovered in
some old code of mine, where I had nested macros using the same macro
name ($A as the argument of both macros, one being called inside the
other). Still trying, as the above code did not create problems...
best
Oeyvind
2014/1/14 Tarmo Johannes :
> Hi,
>
> if I were the parser, I think would see the code after macro replacement in
> the instr 1:
>
> instr 1
> itest = 1
> ithisitest = itest
> print ithisisitest
> endin
>
>
> so the result
> instr 1: ithisitest = 1.000
>
> makes perfectly sense to me.
>
> But what you are after? Some extremely clever and economical code?
>
> best!
> tarmo
>
>
> On Tuesday 14 January 2014 00:35:23 Oeyvind Brandtsegg wrote:
>> #define this(A)#
>> ithis$A = $A
>> print ithis$A
>> #
>> instr 1
>> itest = 1
>> $this(itest)
>> endin
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
> https://sourceforge.net/p/csound/tickets/
> csound5:
> https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
--
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205
http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp
|