1 Reply Latest reply on Oct 20, 2008 1:16 PM by -Hob

    Changing function pointer within function?

    baddcafe Level 1
      Hi flexers,
      I have run into an irritating situation... Basically, to simplify code and make things more generic (i.e. no huge if-else blocks), I am calling a function from a pointer within an event-handler method.

      This mechanism works fine when I assign the function pointer externally, but it appears that I cannot change the function pointer while it is executing (i.e. within the body of the function that is being called).
      If this is unclear, follow up and I will try to clarify.
      I would really like an explanation for this, since it seems to contradict the language spec and basically defeats the purpose of having this language construct.

      Pseudo code: