Almost no pointers (was: Pragmatic Requirements Summary : update)
Mário Amado Alves <[email protected]> Mon, 04 Aug 2003 12:50:35 -0000
| Newsgroups | gmane.comp.programming.pragmatic |
|---|---|
| Message-ID | <[email protected]> |
"One solution I've seen proposed is to keep it allowable, but make it ugly enough that people will think twice before using it. Not sure how I feel about that personally." I know this philosophy. I doesn't sound right. Nothing in the language should be ugly. Before I was asked for an example of pointers getting in the way: polymorphic arrays in Ada must be implemented with pointers. This is one of the things I hope Pragmatic will avoid. To me it's clear Pragmatic should allow pointers. I proposed the following as a way to keep it simple but elegant (not ugly). Address values are implementation-dependent. Any addressable entity has an address_of method. A function exists that accepts an address and returns the value addressed. An error is indicated if the address is not valid. There is a stronger model than this that I can expound if required. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more. http://www.c1tracking.com/l.asp?cid=5510 http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/W4wwlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: pragmatic_lang-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/