On Wed, May 22, 2013 at 09:05:02AM +0000, Marcus Comstedt (ACROSS) (Hail 
Ilpalazzo!) @ Pike (-) developers forum wrote:
> Also, testing on PIKE_T_FUNCTION might not be such a good idea, since
> then using an object with a `() operator won't work, neither will
> using a program as a callback.  The builtin callablep() recognizes
> PIKE_T_FUNCTION, PIKE_T_PROGRAM, PIKE_T_OBJECT, and PIKE_T_ARRAY, but
> a better approach might be to just try apply_svalue if the svalue is
> nonzero and not a string (the case you want to handle differently).

thanks, that is very helpful!
but why would i want to handle a string differently?
(ok, i can imagine just using the string... did you mean that?)

greetings, martin.
  • cal... Martin Bähr
    • ... Arne Goedeke
      • ... Martin Bähr
        • ... Arne Goedeke
          • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
            • ... Martin Bähr
              • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
                • ... Arne Goedeke
                • ... Martin Bähr
                • ... Martin Bähr
                • ... Arne Goedeke
                • ... Martin Bähr
                • ... Arne Goedeke
                • ... Martin Bähr
                • ... Arne Goedeke
                • ... Martin Bähr

Reply via email to