Hi Dan, thanks for making this course. Just out of curiosity, can we modify th...

Dele kasim Answered 2 answers
Question by Dele kasim 3 years ago

Question

Hi Dan, thanks for making this course. Just out of curiosity, can we modify this compiler to handle Oject Oriented Programming - classes and all, even though it's not supported in C.

.... And can we also build automatic Garbage collection and Memory Management into it.
Thanks

Answers

Answered by Daniel McCarthy

Instructor

Yeah for sure you could. It wouldn't be a C compiler then however. You could try to do these things I've built OOP languages before it can be a bit harder but it's not awfully more difficult than the C one we built here. Particularly since we have already made structures that was the hardest bit. If you wish to do this build on your structure functionality so it supports methods

Thanks

Follow-up by Dele kasim

Question author

Thanks