digitalmars.D.learn - Error flabergastation
- Mark "J" Twain (20/20) Aug 02 2016 winmain.d(40): Error: found 'while' when expecting ';' following
- =?UTF-8?Q?Ali_=c3=87ehreli?= (5/22) Aug 02 2016 Walter explains how dmd behaves upon errors here:
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!
Aug 02 2016
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
Aug 02 2016