Re: Compiler error with ifTrue:ifFalse: ?



Hi Dmitry,

#ifTrue:ifFalse: and #ifFalse:ifTrue: methods wait for block with
brackets for optimization.

Yes you normally get the warning in the transcript but it usually works. However in the case of ifFalse:ifTrue: it actually gives an error and refuses to compile. This seems wrong especially when ifTrue:ifFalse: doesn't?

I have applied the change that you suggest - but it does seem like an inconsistency.

Tim


.



Relevant Pages

  • Bogus longjmp clobber warning?
    ... hair out over error logging. ... extern int pthread_rwlock_rdlock; ... If this is compiled without optimization, ... I get a warning that pt_errno might be ...
    (comp.os.linux.development.apps)
  • Re: event id: 1025
    ... functionality of the system, and is not a cause for concern. ... Event Type: Warning ... Event Source: MSExchangeIS Mailbox Store ... Error: -1102 Warning: fail to apply search optimization to folder (FID ...
    (microsoft.public.exchange.admin)
  • Re: large files: when ubiquitous?
    ... >> functions, that isn't necessary in this case, because the database keys ... > gcc produce a warning because the code is wrong. ... it actually does some of that optimization that can fail. ... > compiler that will notice every possible mistake you could ...
    (comp.os.linux.development.system)
  • Re: unreachable code in vector
    ... > been emitted without optimization. ... The warning _can_ be emitted in a debug build if the unreachability ... Doing a quick test with the current MS compiler on this code, ...
    (microsoft.public.vc.language)
  • Re: When are unnecessary casts useful?
    ... char* a; ... Note that my version of gcc hasn't warned on line 9; ... parentheses as an instruction to suppress the warning. ... Unfortunately not all compilers take the hint when you just add brackets -- some will continue to warn you. ...
    (comp.lang.c)