Lichen

Change of templates/progops.c

193:828aa694a1a1
templates/progops.c
     1.1 --- a/templates/progops.c	Sat Nov 19 18:17:54 2016 +0100
     1.2 +++ b/templates/progops.c	Sat Nov 19 18:30:54 2016 +0100
     1.3 @@ -8,7 +8,7 @@
     1.4  #include "progops.h"
     1.5  #include "progtypes.h"
     1.6  #include "main.h"
     1.7 -#include <stdio.h>
     1.8 +#include "exceptions.h"
     1.9  
    1.10  /* Generic instantiation operations, defining common members. */
    1.11  
    1.12 @@ -124,10 +124,10 @@
    1.13  
    1.14  __attr __unbound_method(__attr args[])
    1.15  {
    1.16 -    /* NOTE: Should raise an exception. */
    1.17 -
    1.18 -    fprintf(stderr, "Unbound method called!\n");
    1.19 -    exit(1);
    1.20 +    __attr excargs[1];
    1.21 +    __attr exc = __new___builtins___core_UnboundMethodInvocation(excargs);
    1.22 +    __Raise(exc);
    1.23 +    return __builtins___none_None; /* superfluous */
    1.24  }
    1.25  
    1.26  /* Generic operations depending on specific program details. */