Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Data hiding and...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 204 of 211
Post > Topic >>

Data hiding and type safety

by Anton <anton.txt@[EMAIL PROTECTED] > Feb 23, 2008 at 09:51 PM

Hi all,

  I am just interested what is the Pascal way  of  dealing  with
  (type) safety and data hiding.

  For example, I am  writing  a  module  that  handles  threaded
  trees. What should it export?

  If I export the definiton of my tree type,  I'll  disclose  my
  internals, which is not safe (no data hiding);  on  the  other
  hand, if I don't do it, the interface functions will  have  to
  operate with an index or a pointer to indentify a tree  inside
  my module, which is not type safe...

  Doesn't Extended Pascal deal with such  problems  by  offering
  restricted types?

Thanks in advance,
Anton




 8 Posts in Topic:
Data hiding and type safety
Anton <anton.txt@[EMAI  2008-02-23 21:51:23 
Re: Data hiding and type safety
John Reagan <john.reag  2008-02-25 16:06:38 
Re: Data hiding and type safety
Anton <anton.txt@[EMAI  2008-02-25 22:13:23 
Re: Data hiding and type safety
John Reagan <john.reag  2008-02-26 11:20:58 
Re: Data hiding and type safety
Anton <anton.txt@[EMAI  2008-02-26 21:20:49 
Re: Data hiding and type safety
John Reagan <john.reag  2008-02-27 14:16:09 
Re: Data hiding and type safety
Anton <anton.txt@[EMAI  2008-02-27 20:14:40 
Re: Data hiding and type safety
John Reagan <john.reag  2008-02-27 15:53:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 5:57:02 CDT 2008.