Csound Csound-dev Csound-tekno Search About

k-time conditional goto: ?

Date1999-05-10 02:07
FromPaul Barton-Davis
Subjectk-time conditional goto: ?
Am I the only one who thinks that this code:

  void kcgoto(CGOTO *p)
  {
      if (*p->cond)
          pds = p->lblblk->prvp;
  }

doesn't match my expectations of the expression:

	if (kvar REL kvar) kgoto label

I would have expected (kvar REL kvar) to be evaluated every k-cycle,
but instead, its evaluated once, during orchestra compilation. In
essence, its no different that icgoto(), except that its opcode type
signature requires k-time arguments.

Am I mistaken here ?