by Apeirogon » Wed Jun 19, 2019 10:41 am
Graf Zahl wrote:compiler screwing things up badly
Like how, for example? Actor class, defined in gzdoom pack, definition turns into mess from code from all files?
Major Cooke wrote:Different translation units?
Roughly speaking, single zscript file is a single translation unit which gzdoom translate (turn text in it to bytecode) using magic. Different translation units -> different zscript files.
I dont know how exactly zscript compiler work, but I think it translate each file separately and then combine it into one single file, which cause conflicts between "extended" and "default" actors.
[quote="Graf Zahl"]compiler screwing things up badly[/quote]
Like how, for example? Actor class, defined in gzdoom pack, definition turns into mess from code from all files?
[quote="Major Cooke"]Different translation units?[/quote]
Roughly speaking, single zscript file is a single translation unit which gzdoom translate (turn text in it to bytecode) using magic. Different translation units -> different zscript files.
I dont know how exactly zscript compiler work, but I think it translate each file separately and then combine it into one single file, which cause conflicts between "extended" and "default" actors.