August 03, 2016 Error flabergastation | ||||
---|---|---|---|---|
| ||||
winmain.d(40): Error: found 'while' when expecting ';' following statement winmain.d(40): Error: unexpected ( in declarator winmain.d(40): Error: basic type expected, not & winmain.d(40): Error: found '&' when expecting ')' winmain.d(40): Error: found 'msg' when expecting ')' winmain.d(40): Error: missing { ... } for function literal winmain.d(40): Error: found ')' when expecting ';' following statement winmain.d(40): Error: found ')' instead of statement winmain.d(46): Error: unexpected ( in declarator winmain.d(46): Error: basic type expected, not 10 winmain.d(46): Error: found '10' when expecting ')' winmain.d(46): Error: no identifier for declarator Sleep(_error_) winmain.d(46): Error: semicolon expected following function declaration winmain.d(46): Error: declaration expected, not ')' winmain.d(47): Error: unrecognized declaration all that for a 10 line app that has a missing semicolon after a function call! Sleep has nothing to do with it! |
August 02, 2016 Re: Error flabergastation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark "J" Twain | On 08/02/2016 06:56 PM, Mark J Twain wrote: > winmain.d(40): Error: found 'while' when expecting ';' following statement > winmain.d(40): Error: unexpected ( in declarator > winmain.d(40): Error: basic type expected, not & > winmain.d(40): Error: found '&' when expecting ')' > winmain.d(40): Error: found 'msg' when expecting ')' > winmain.d(40): Error: missing { ... } for function literal > winmain.d(40): Error: found ')' when expecting ';' following statement > winmain.d(40): Error: found ')' instead of statement > winmain.d(46): Error: unexpected ( in declarator > winmain.d(46): Error: basic type expected, not 10 > winmain.d(46): Error: found '10' when expecting ')' > winmain.d(46): Error: no identifier for declarator Sleep(_error_) > winmain.d(46): Error: semicolon expected following function declaration > winmain.d(46): Error: declaration expected, not ')' > winmain.d(47): Error: unrecognized declaration > > all that for a 10 line app that has a missing semicolon after a function > call! Sleep has nothing to do with it! > Walter explains how dmd behaves upon errors here: https://www.youtube.com/watch?v=l_96Crl998E&index=8&list=PL3jwVPmk_PRyTWWtTAZyvmjDF4pm6EX6z&t=2761 Ali |
Copyright © 1999-2021 by the D Language Foundation