On Sun, Jun 10, 2007 at 01:55:03PM +0000, Martin Stjernholm,  Roxen IS @ Pike  
developers forum wrote:
> You mean .pmod vs .pike files? Looking in the objects mapping in the
> master should be a fairly reliable to tell whether something is a
> module.

ah, right.

> Strings cast to objects end up there too, but that's an uncommon thing
> to do (I think that should be an error instead - such quirky and
> unintuitive casts are just confusing).

i am guilty of having done that. but you do have a point.
although, it IS useful to create singleton objects:
> ((program)"someclass.pike")() == ((program)"someclass.pike")();
Result: 0
> ((object)"someclass.pike") == ((object)"someclass.pike");        
Result: 1

> > there appears to be a difference between what _typeof() finds,
> Isn't it better to use the describe_* functions in the master, or take
> a look at how they do it? It's probably the same functions _typeof
> itself is using.

the describe_functions are not generic, means, i'd have to do multiple
tests, and it still does not make it any easier to get the type.

greetings, martin.
  • fin... Mirar @ Pike developers forum
    • ... Martin Baehr
      • ... Mirar @ Pike developers forum
        • ... Martin Baehr
      • ... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
        • ... Martin Baehr
  • fin... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
  • fin... Martin Stjernholm, Roxen IS @ Pike developers forum
    • ... Martin Baehr
      • ... Martin Stjernholm, Roxen IS @ Pike developers forum
        • ... Martin Baehr
          • ... Martin Stjernholm, Roxen IS @ Pike developers forum
            • ... Martin Baehr
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum
              • ... Martin Baehr
        • ... Martin Baehr

Reply via email to