[sdiy] OT (but very synthy): C question

Paul Cunningham paul at cometway.com
Mon Mar 28 18:52:22 CEST 2011


On Mar 28, 2011, at 12:13 PM, Tom Wiltshire wrote:

> Now, my LFO header file includes the following:
> 
> 	void LFOCalculate(LFO *this, MIDIHandler *midi);
> 
> "this" is a reference to an LFO structure, basically OO by the back door. "midi" is a reference to my MIDI handler which I need to be able to send MIDI clock pulses from the LFO.


Use of "this" as a parameter name is not a problem unless your C compiler is actually a C++ compiler. "this" is a reserved keyword in C++ and many other languages. -pc


More information about the Synth-diy mailing list