comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Discriminants of tagged types
Date: Thu, 28 Oct 2010 19:48:50 +0200
Date: 2010-10-28T19:48:50+02:00	[thread overview]
Message-ID: <op.vlarroh7ule2fv@garhos> (raw)
In-Reply-To: 14f33f04-40f5-4a72-a18b-d511dd2eb3b3@w21g2000vby.googlegroups.com

Le Thu, 28 Oct 2010 10:50:51 +0200, Maciej Sobczak  
<see.my.homepage@gmail.com> a écrit:
>> This has nothing to do with copying. Consider a handle of a resource,  
>> e.g.
>> HWND as an example. It is bound to the resource, nevertheless it is
>> copyable.
>
> [...]
> What would it mean to copy a file object? Should the file on disk be
> copied as well? Should the data that is still in the buffer be copied?
> And so on. Instead of answering these questions in an unsatisfactory
> way, it is better to outlaw the dubious operation up front.
Proxy objects needs not to be all the same. At least the Windows API do  
this (as others OS do) : you may open a file multiple times, get multiple  
handles to it, with for each, different access rights. The handle is not  
the file, this is a kind of proxy to a file's physical instance. The  
application on its own side, may do the same with handles, and hide file  
handles behind proxies (two levels). This is even a common construct, as  
in most designs you have references, smart references and proxies allover  
the place.

You obviously have the same with object whose intent is to draw on the  
screen.

May be this is too much wide to be uniquely identified and when the  
concept is referred to, it finally just tell few (and that's what may make  
its exact intent smoggy).

-- 
Si les chats miaulent et font autant de vocalises bizarres, c’est pas pour  
les chiens.



  parent reply	other threads:[~2010-10-28 17:48 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27 12:16 Discriminants of tagged types Maciej Sobczak
2010-10-27 12:34 ` Ludovic Brenta
2010-10-27 13:19   ` Dmitry A. Kazakov
2010-10-27 13:52     ` Robert A Duff
2010-10-27 14:12       ` Dmitry A. Kazakov
2010-10-27 13:44 ` Robert A Duff
2010-10-27 15:06   ` Adam Beneschan
2010-10-27 15:58     ` Yannick Duchêne (Hibou57)
2010-10-27 16:35       ` Vinzent Hoefler
2010-10-27 17:58       ` J-P. Rosen
2010-10-27 20:18         ` Yannick Duchêne (Hibou57)
2010-10-27 20:26       ` Adam Beneschan
2010-10-27 22:07         ` Yannick Duchêne (Hibou57)
2010-10-27 22:42           ` Adam Beneschan
2010-10-27 15:13   ` Maciej Sobczak
2010-10-27 16:02     ` Yannick Duchêne (Hibou57)
2010-10-27 21:13       ` Maciej Sobczak
2010-10-27 21:23         ` Ludovic Brenta
2010-10-28  8:38           ` Maciej Sobczak
2010-10-27 21:25         ` Vinzent Hoefler
2010-10-28  7:53         ` Dmitry A. Kazakov
2010-10-28  8:50           ` Maciej Sobczak
2010-10-28 10:28             ` Dmitry A. Kazakov
2010-10-28 17:48             ` Yannick Duchêne (Hibou57) [this message]
2010-10-29 18:59             ` Vinzent Hoefler
2010-10-30 21:05               ` Maciej Sobczak
2010-10-30 21:21                 ` Vinzent Hoefler
2010-10-30 22:01                   ` Yannick Duchêne (Hibou57)
2010-10-31 16:20                   ` Maciej Sobczak
2010-10-31 17:04                     ` Yannick Duchêne (Hibou57)
2010-10-31 18:36                     ` Shark8
2010-10-31 21:06                       ` Maciej Sobczak
2010-11-01  0:44                         ` Shark8
2010-11-01  9:41                           ` Maciej Sobczak
2010-10-27 16:06     ` Robert A Duff
2010-10-27 16:34       ` Yannick Duchêne (Hibou57)
2010-10-27 21:05       ` Maciej Sobczak
2010-10-28  0:35         ` Robert A Duff
2010-10-28  8:55           ` Maciej Sobczak
2010-10-27 21:28       ` Simon Wright
2010-10-27 13:54 ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox