On 2014-03-13 18:13:44 +0000, Jacob Carlborg <d...@me.com> said:

On 2014-03-13 17:16, Johannes Pfau wrote:

Is it possible to split objc.c into two files, one for backend
interfacing functions (ObjcSymbols) and one for the generic frontend

I would guess so. I would need to take a look to see how coupled the code in objc.c is. Although, most code is for backend.

I think that'd be a good idea too. When I wrote that code I wanted everything to be close by as it was easier to experiment, but there's no need for that now.

Perhaps, instead of splitting, classes derived from frontend classes (Expression, Declaration, Type) should be moved to their corresponding files and live with other similar classes of the frontend, protected in #if DMD_OBJC blocks.

Michel Fortin

Reply via email to