From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d067a5a7c60c3b40 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Unchecked_Deallocation vs. delete Date: Wed, 16 May 2007 14:25:25 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1178728045.890171.6110@q75g2000hsh.googlegroups.com> <1hzydt9ej6az6$.12jl0su9budun.dlg@40tude.net> <1178827771.416316.210790@y80g2000hsf.googlegroups.com> <1178871315.928116.262190@e51g2000hsg.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1179343406 30519 69.95.181.76 (16 May 2007 19:23:26 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 16 May 2007 19:23:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Path: g2news1.google.com!news4.google.com!proxad.net!feed.ac-versailles.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail Xref: g2news1.google.com comp.lang.ada:15815 Date: 2007-05-16T14:25:25-05:00 List-Id: "Maciej Sobczak" wrote in message news:1178871315.928116.262190@e51g2000hsg.googlegroups.com... > On 11 Maj, 09:35, "Dmitry A. Kazakov" > wrote: > > > > Why not make a > > > Very_Hard_To_Use_Unchecked_Deallocation_Built_In_Operator instead? > > > > Primitive operation of the access type you mean, there is no need to > > introduce an operator. > > If there was a need to introduce 'new' as an operator... 'new' is not an operatOR, it is a primitive operatION. Operators (like "+", "abs") can be user-defined; operations (like "new", "in", ":=") cannot. (Well, actually operators are also operations, so it's really only operations that are not operators that cannot.) Dmitry was just making that distinction... Note that some operations like "new" and ":=" can have some user-defined behavior using another mechanism (storage pools for "new", controlled types for ":="), but that is different than being completely user-defined. Complete redefinition would be hard for operations, because some of the needed semantics cannot easily be modeled as a subprogram call. Randy.