Branch: Tag:

1999-12-31

1999-12-31 01:53:58 by Martin Stjernholm <mast@lysator.liu.se>

Added new magic identifier "this_program". It behaves like a private
constant that is the current program. (Useful to refer to the same class
when it has no name.) Being private implies that it's the current lexical
program, as opposed to object_program(this_object()).

Rev: src/language.yacc:1.159
Rev: src/program.c:1.194
Rev: src/program.h:1.75

5:   \*/      /* -  * $Id: program.h,v 1.74 1999/12/30 14:45:12 grubba Exp $ +  * $Id: program.h,v 1.75 1999/12/31 01:53:58 mast Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
23:   #define PROGRAM_LINE_ARGS void   #endif    + extern struct pike_string *this_program_string; +    #define LFUN___INIT 0   #define LFUN_CREATE 1   #define LFUN_DESTROY 2