-Subproject commit bfa25ccbd71243abe8d89b3615e43395c5493e30
+Subproject commit ae1bfee327f32a22d07903b434ce18b138870dee
fun void test() { <<< "member function." >>>; }
class C {
- typedef void func_t();
-#! typedef static void s_func_t();
+ funcdef void func_t();
+#! funcdef static void s_func_t();
var func_t func_p;
#! static fun c_t s_func_p;
#! static s_func_t s_ptr;
-typedef void func_t();
+funcdef void func_t();
var func_t func_p;
fun void test1() { <<< "test1" >>>; }
fun void test2() { <<< "test2" >>>; }
#! define a fun pointer type
-typedef void Test();
+funcdef void Test();
#! define a few funs
fun void test1(){ <<< "test" >>>; };
-typedef void t_ptr();
+funcdef void t_ptr();
fun void test(t_ptr p) {
<<< p >>>;
}
class C {
- typedef void t_ptr();
- typedef void t_ptr1(int);
+ funcdef void t_ptr();
+ funcdef void t_ptr1(int);
fun void test(t_ptr p) {
<<< p >>>;
}
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
fun void test(t_ptr p) {
<<< p >>>;
}
class C {
- typedef void Test();
+ funcdef void Test();
fun void test1(){};
var Test test0;
<<< test1 @=> test0 >>>;
#! [contains] NullTickException
-typedef float ptr_t(float);
+funcdef float ptr_t(float);
var ptr_t ptr ~= var UsrUGen u;
#! [contains] NullPtrException
class C
{
- typedef void test();
+ funcdef void test();
var test t;
}
<<< var C c >>>;
#! [contains] can't use non global fptr of other class
class C {
- typedef void t_ptr();
+ funcdef void t_ptr();
}
class D {
- typedef void t_ptr();
+ funcdef void t_ptr();
var C.t_ptr ptr;
}
#! [contains] NullPtrException
-typedef void Test();
+funcdef void Test();
var Test test;
test();
#! [contains] argument number does not match for lambda
-typedef void ptr_t(int i);
+funcdef void ptr_t(int i);
\a b { <<< a, " ", b >>>; } @=> var ptr_t ptr;
ptr(2);
#! [contains] argument number does not match for lambda
-typedef void ptr_t(int i);
+funcdef void ptr_t(int i);
\a b { <<< a, " ", b >>>; } @=> var ptr_t ptr;
fun void test(ptr_t p) {
p(2);
#! [contains] NullPtrException
class C {
- typedef void t_ptr();
+ funcdef void t_ptr();
}
var C.t_ptr ptr;
ptr();
#! [contains] can only be used at class scope
-typedef static void my_fun();
+funcdef static void my_fun();
#! [contains] unknown type
-typedef unknown_type my_fun();
+funcdef unknown_type my_fun();
#! [contains] unknown type
-typedef void my_func(unknown_type type);
+funcdef void my_func(unknown_type type);
#! [contains] cannot declare variables of size '0'
-typedef void my_func(void arg);
+funcdef void my_func(void arg);
#! [contains] must be defined with empty
-typedef void my_func (int i[4]);
+funcdef void my_func (int i[4]);
#! [contains] can't assign non member function to member function pointer
class C {
- typedef void Test();
+ funcdef void Test();
var Test test;
}
#! [contains] can't assign member function to non member function pointer
-typedef void Test();
+funcdef void Test();
var Test test;
class D {
fun void test(){}
#! [contains] can't assign member function to a pointer of an other class
class C {
- typedef void Test();
+ funcdef void Test();
var Test test;
}
#! [contains] has already been defined in the same scope
var int i;
-typedef void i();
+funcdef void i();
fun void test(int i){}
fun void test(float f){}
-typedef void Test();
+funcdef void Test();
var Test t;
test @=> t;
#! [contains] can only be used at class scope
-typedef static void Test();
+funcdef static void Test();
#! [contains] can only be used at class scope
-typedef static void Test(int i);
+funcdef static void Test(int i);
#! [contains] pre-defined types
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
var t_ptr:[int] iptr;
#! [contains] pre-defined types
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
typedef t_ptr:[int] B;
fun void test:[A]() {
#! [contains] can't assign
class C {
fun static void test(int i) { <<< "int arg" >>>; }
- typedef void PtrType(int i);
+ funcdef void PtrType(int i);
test @=> var PtrType p;
p(1);
test @=> p;
class C {
fun void test(int i) { <<< "int arg" >>>; }
- typedef static void PtrType(int i);
+ funcdef static void PtrType(int i);
test @=>
var PtrType p;
p(1);
class C {
fun void test(int i) { <<< "int arg" >>>; }
- typedef void PtrType(int i);
+ funcdef void PtrType(int i);
test @=> var static PtrType p;
p(1);
test @=> p;
class C {
fun static void test(int i) { <<< "int arg" >>>; }
- typedef static void PtrType(int i);
+ funcdef static void PtrType(int i);
test @=> var static PtrType p;
p(1);
test @=> p;
#! [contains] can't assign
class C {
fun void test(int i) { <<< "int arg" >>>; }
- typedef static void PtrType(int i);
+ funcdef static void PtrType(int i);
test @=> var static PtrType p;
p(1);
test @=> p;
-typedef void ptr_t();
+funcdef void ptr_t();
var ptr_t t @=> var ptr_t t2;
class C {
-typedef global void global_fptr(int i);
+funcdef global void global_fptr(int i);
}
class C {
- typedef void ptr_t:[A]();
+ funcdef void ptr_t:[A]();
fun void test:[A]() {}
test $ ptr_t;
}
class C {
var int m_i;
- typedef void t_fptr0();
- typedef void t_fptr1(int i);
+ funcdef void t_fptr0();
+ funcdef void t_fptr1(int i);
fun void test() { <<< this , " ", __func__ >>>;}
fun void test(int i) { <<< __func__, " ", i >>>;}
test @=> var t_fptr0 ptr0;
class C {
- typedef void T();
+ funcdef void T();
fun int f(T t) { <<< t >>>; t();}
fun void test() { <<< __func__ >>>; }
test => f;
class C {
- typedef void ptr_t(int i,int j);
+ funcdef void ptr_t(int i,int j);
\a b { <<< this, " ", a, " ", b, " test" >>>; } @=> var ptr_t ptr;
fun void test(int i, int j) { <<< this, " ", i, " ", j >>>; }
}
class C {
- typedef void ptr_t(int i);
+ funcdef void ptr_t(int i);
\a { <<< this, " ", a >>>; } @=> var ptr_t ptr;
fun void t1(int i) { <<< this, " t1 ", i >>>; }
fun void test(ptr_t p) {
class C {
- typedef void t_fptr(int i);
+ funcdef void t_fptr(int i);
fun void test(int i) { <<< this , " ", __func__, " ", i >>>;}
test @=> var t_fptr ptr;
}
-typedef void t_fptr(int i);
+funcdef void t_fptr(int i);
fun void test(int i) { <<< __func__, " ", i >>>;}
test @=> var t_fptr ptr;
<<< ptr >>>;
class C {
- typedef void t_fptr(int i, int);
+ funcdef void t_fptr(int i, int);
fun void test(int i, int j) { <<< this ,
" ", __func__, " ", i, " " , j >>>;}
test @=> var t_fptr ptr;
class C {
- typedef static void func_t:[A](A a);
+ funcdef static void func_t:[A](A a);
fun static void myfunc:[A](A a) { <<< a >>>; }
myfunc @=> var static func_t ptr;
ptr(1);
class C:[A] {
- typedef static void func_t:[A](A a);
+ funcdef static void func_t:[A](A a);
fun static void myfunc:[A](A a) { <<< a >>>; }
myfunc @=> var static func_t ptr;
ptr(1);
class C {
- typedef void t_ptr();
+ funcdef void t_ptr();
var t_ptr iptr;
class C {
- typedef void t_ptr(...);
+ funcdef void t_ptr(...);
var t_ptr iptr;
class C {
- typedef void t_ptr:[A]();
+ funcdef void t_ptr:[A]();
var t_ptr:[int] iptr;
class C {
- typedef static void t_ptr:[A]();
+ funcdef static void t_ptr:[A]();
var t_ptr:[int] iptr;
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
var t_ptr ptr;
-typedef void ptr_t:[A](myPtr ptr);
+funcdef void ptr_t:[A](myPtr ptr);
var ptr_t:[ Ptr:[A] ] t;
class C
{
- typedef void Test();
+ funcdef void Test();
var Test test;
fun void func(){}
}
-typedef void test_t:[A]();
+funcdef void test_t:[A]();
nonnull test_t t;
t:[int]();
-typedef void test(int);
+funcdef void test(int);
(var test t)(2);
class C {
fun void test(int i) { <<< "int arg" >>>; }
- typedef void ptr_t(int i);
+ funcdef void ptr_t(int i);
test @=> var ptr_t p;
p(1);
test @=> p;
class C {
- typedef global void global_fptr(int i);
+ funcdef global void global_fptr(int i);
}
#! [contains] can't use non global fptr of other class
class C {
- typedef void t_ptr();
+ funcdef void t_ptr();
}
class D {
- typedef void t_ptr();
+ funcdef void t_ptr();
var C.t_ptr ptr;
}
-typedef int[] test(int i);
+funcdef int[] test(int i);
-typedef void test(int i[]);
+funcdef void test(int i[]);
-typedef void Test();
+funcdef void Test();
fun void t(){<<< "lol" >>>;}
t @=> var Test test;
test();
-typedef void Test();
+funcdef void Test();
fun void t0(){}
t0 @=> var Test test;
test();
class C {
var static int i;
- typedef static void Test();
+ funcdef static void Test();
var static Test test;
}
-typedef int ptr_t:[A](A);
+funcdef int ptr_t:[A](A);
var ptr_t ptr;
<<<ptr>>>;
-typedef void t_ptr(int i);
+funcdef void t_ptr(int i);
typedef t_ptr A;
var A a;
<<<a>>>;
class C {
-typedef void t_ptr();
+funcdef void t_ptr();
typedef t_ptr A;
var A a;
<<<a>>>;
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
var t_ptr:[int] iptr;
var t_ptr:[float] fptr;
-typedef void t_ptr:[A]();
+funcdef void t_ptr:[A]();
fun void test:[A]() {
<<< __func__ >>>;
}
class C {
- typedef void t_ptr:[A]();
+ funcdef void t_ptr:[A]();
var t_ptr:[int] iptr;