Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marineクラスの実装 #218

Open
elipmoc opened this issue Aug 24, 2022 · 0 comments
Open

marineクラスの実装 #218

elipmoc opened this issue Aug 24, 2022 · 0 comments

Comments

@elipmoc
Copy link
Collaborator

elipmoc commented Aug 24, 2022

//Zako1 : は省略可能
Zako1 : Enemy
{
     name: "hoge";//必須定数
 hoge: "aaa";//not必須定数
 hage: "bbb“;//固有定数
    
 let hp =0; //必須変数
 let tmp_hp = 0//not必須変数
 let tmp_tmp =0//固有変数

    fun GetHP(){...}//必須関数
 fun GetHP2(){...}//not必須関数
 fun GetHP3(){...}//固有関数
}
これが草案です
マリンコンパイル時に動的にクラス定義作成する感じかな
MSILの動的生成が必要になりそう
できるかどうかはしらない
メリットは、型安全にアクセスできるってとこ
問題はMarineValueの壁が分厚いという点
まぁ、この機能の動機としては、テンプレート機能欲しいねって感じ
コンパイル時にある程度チェックできるのも良い
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant