enhancing the compiler to handle 'var' in the class scope. unneeded code to be removed asap
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-19 02:31:54 +09:00
parent 3c88ada3bf
commit f2479c55cd
12 changed files with 225 additions and 55 deletions

View File

@ -12,7 +12,8 @@ fun Number: <= (oprnd) { return (<= self oprnd) }
fun Number: == (oprnd) { return (== self oprnd) }
fun Number: ~= (oprnd) { return (~= self oprnd) }
class A [ a b c ] {
class A {
var a b c
fun(#ci) newInstance(x y z) {
set a x;
@ -26,7 +27,8 @@ class A [ a b c ] {
fun get-c() { return self.c; };
};
class B: A [ d e f ] {
class B: A {
var d e f
fun(#ci) newInstance(x y z) {
super:newInstance (* x 2) (* y 2) (* z 2);