This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

assert

 
rani bedi
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently saw a program using the assert keyword. Hopefully it looked to me as a statement. Can anyone comment.
assert index > 0 : baseValue ;
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not available in java. Here is an article discussing how you could CHOOSE to implement it if you want to:
http://developer.java.sun.com/developer/TechTips/1998/tt0217.html#tip1
 
Julia Reynolds
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read somewhere that we will have assert in JDK 1.4.
Julia
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Julia Reynolds:
I read somewhere that we will have assert in JDK 1.4.
Julia

Perhaps here: http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic