SciRuby / rubex

rubex - A Ruby-like language for writing Ruby C extensions.
BSD 2-Clause "Simplified" License
451 stars 21 forks source link

Error if type of special function for attached class is not what it should be #14

Open v0dro opened 7 years ago

v0dro commented 7 years ago

For example, the deallocate function for attached classes must not take in arguments and must be of return type void. Similar constraints exist for the others as well. These must be adhered to.

Also, if the user fails to write a deallocate function the compiler must raise an error and state so.