/*
 *
 *  g f . h			-- STklos support (generic functions)
 *
 * Copyright (C) 1993 Erick Gallesio - I3S - CNRS / UNSA <eg@unice.fr>
 * 
 *
 * Permission to use, copy, and/or distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that both the above copyright notice and this permission notice appear in
 * all copies and derived works.  Fees for distribution or use of this
 * software or derived works may only be charged with express written
 * permission of the copyright holder.  
 * This software is provided ``as is'' without express or implied warranty.
 *
 * This software is a derivative work of other copyrighted softwares; the
 * copyright notices of these softwares are placed in the file COPYRIGHTS
 *
 *
 *            Author: Erick Gallesio [eg@unice.fr]
 *    Creation date:  9-Feb-1994 15:56
 * Last file update:  3-Feb-1995 14:35 
 */


#define GENERICP(x)  (INSTANCEP(x) && \
		      SUBCLASSP(CLASS_OF(x), VCELL(Intern("<generic>"))))

#define METHODP(x)   (INSTANCEP(x) && \
		      SUBCLASSP(CLASS_OF(x), VCELL(Intern("<method>"))))

#define NGENERICP(x)		(!GENERICP(x))
#define NMETHODP(x)		(!METHODP(x))

SCM  STk_apply_generic(SCM gf, SCM args, SCM env);
void STk_init_gf(void);
