Branch: Tag:

2001-04-10

2001-04-10 09:51:42 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

fixed function_object and function_name to return proper values for scope-using lambda functions

Rev: src/builtin.cmod:1.26
Rev: src/encode.c:1.97
Rev: src/testsuite.in:1.402

1: - test_true([["$Id: testsuite.in,v 1.401 2001/04/08 10:11:40 hubbe Exp $"]]); + test_true([["$Id: testsuite.in,v 1.402 2001/04/10 09:51:42 hubbe Exp $"]]);      cond([[all_constants()->_verify_internals]],   [[
1899:    return function_name(object_program(Foo()));   ]], "Foo")    + test_any([[ +  int q; +  return stringp(function_name( lambda() { return q; })); + ]],1) +  + test_any([[ +  int q; +  return function_object( lambda() { return q; }); + ]],[[this_object()]]) +  +    test_compile_error(class c { object(Stdio.File) foo=class {} ();})   test_compile_error(class c { object(Stdio.File) foo=class {} ();})   test_compile_error(class c { object(Stdio.File) foo=class {} ();})