I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

June Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi Object PASCAL Topic   Print This     

Does Delphi support code contracts?

Does Delphi support code contracts? in Delphi Object PASCAL topic (part of our Pascal and Delphi Coding group).

Quick Search: support   contracts   Does Delphi   Does Delphi support   code contracts  
ParaDelphi
-- USA

I was reading a bit about class contracts in Prism, does Delphi 2009 support class contracts? I've looked everywhere.

----
Paul "The Coder" Santoro

 Posted 10 years ago (Thread Starter)
Comment Quote
About ParaDelphi -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About ParaDelphi

Paul has been developing in paradox and delphi since the mid 90s.


Post ID #13315, 4 replies
Thread Started 2/22/2009 10:16:17 AM
View Counter=4167
Last Reply Posted 1/30/2010 12:53:47 PM)
Location=-- USA 
Joined=12 years ago   MB Posts=23   KB Comments=2  
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA

I was just posting about Class Contracts in Prism to the knowledge base and documenting the future plans for code contracts in C# and VB.Net.

No, I haven't seen Design by Contract features in Delphi 2009. As you stated, they are in Prism now and C# and VB.Net plan on them for VS.Net 2010 along with .Net 4. Design by Contracts has been around for a while and I've seen a few Delphi articles in the past about it. If I remember correctly, it was not "native" support but rather a style of design along with some libraries. It would be nice for Delphi to offer the runtime pre, post, and invariant support that's in Prism now.

--
Mike Prestwood
Prestwood IT Solutions

 Posted 10 years ago
Comment Quote
About Mike Prestwood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #13317 (Level 1.1)  Reply to 13315
Thread Started 2/22/2009 10:52:35 AM
Last Reply Posted 2/23/2009 10:22:40 AM)
Location=Prestwood IT office in Citrus Heights, CA 
Joined=19 years ago   MB Posts=1410   KB Posts=1805   KB Comments=75   BLOG, Topics=4  
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA
Quote:
Originally Posted by ASPGuy

What about asserts? Isn't that the same thing?


hmmm...good question. They are similar to pre and post conditions but the online help says to only use Asserts for debugging.

--
Mike Prestwood
Prestwood IT Solutions

 Posted 10 years ago
Comment Quote
About Mike Prestwood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #13319 (Level 1.2)  Reply to 13315
Reply Posted 2/22/2009 11:57:38 AM
Location=Prestwood IT office in Citrus Heights, CA 
Joined=19 years ago   MB Posts=1410   KB Posts=1805   KB Comments=75   BLOG, Topics=4  
Most Recent Post
ParaDelphi
-- USA

thanks. i have not been back in a while but wanted to say thanks for the info.

----
Paul "The Coder" Santoro

 Posted 9 years ago (Thread Starter)
Comment Quote
About ParaDelphi -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About ParaDelphi

Paul has been developing in paradox and delphi since the mid 90s.


Post ID #13870 (Level 2.1)  Reply to 13319 and Parent is 13315
Thread Started 1/30/2010 12:53:11 PM
Location=-- USA 
Joined=12 years ago   MB Posts=23   KB Comments=2  
ASPGuy
San Francisco, CA USA

What about asserts? Isn't that the same thing?

--

Andy

 Posted 10 years ago
Comment Quote
About ASPGuy -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About ASPGuy

I work for a large company in SF. I spend my days mostly doing analysis but code in asp and vb.net whenever possible.


Post ID #13318 (Level 1.3)  Reply to 13315
Reply Posted 2/22/2009 10:53:31 AM
Location=San Francisco, CA USA 
Joined=12 years ago   MB Posts=48   KB Comments=5  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1194A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #13315 Counter
4167
Since 2/22/2009
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech