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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,517611567e1815f2 X-Google-Attributes: gid103376,public From: David Botton Subject: Re: Java momentum slowing ? Date: 1999/05/09 Message-ID: <37365163.1AB89036@Botton.com>#1/1 X-Deja-AN: 476040647 Content-Transfer-Encoding: 7bit References: <372b0ec7.28153993@news2.ibm.net> <3728E60E.F789FD8@uq.net.au> <373612A6.3752CC19@Botton.com> <7h5ak3$2t8@drn.newsguy.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@gate.net X-Trace: news.gate.net 926306660 82596 199.227.148.176 (10 May 1999 03:24:20 GMT) Organization: CyberGate, Inc. Mime-Version: 1.0 NNTP-Posting-Date: 10 May 1999 03:24:20 GMT Newsgroups: comp.lang.ada Date: 1999-05-10T03:24:20+00:00 List-Id: bill@nospam wrote: > > In article <373612A6.3752CC19@Botton.com>, David says... > > > > >Java does not have a standard. It has a vendor. > > > > This is funny. You are the same one who uses COM and DCOM and > ActiveX, and all that windows specific stuff, dont't you? show us the > ISO standard for any of those. Show us the ISO standard for VB or Delphi > or Perl pr Pyhton or any of the zillion other technologies being used > everyday by millions of programmers. That is just the point since they all have a vendor and no standard things change under the cover all the time and there is nothing for them to answer to. So there is no "Java Standard" as you wrote, not even a defacto standard among vendors (take a look at J++). David Botton --------- Just as an example (one of many possible) when Microsoft specified the method ITypeInfo::GetRefTypeOfImplType they specified an Unsigned Integer as an index. Yet since things have changed in the COM world (of course this is not supposed to happen) you need to pass in a negative index to get the TKIND_INTERFACE out of a TKIND_DISPATCH that is a dual interface (something MS added after the original COM/OLE specs were drawn up to support faster access to OLE objects from early binding languages and tools.) Which means I have to write code to go against the MS specs and bindings: ----------------------------- -- Get_Interface_Reference -- ----------------------------- procedure Get_Interface_Reference(Source : in Object; Index : Integer; In_To : in out Object) is function To_UINT is new Ada.Unchecked_Conversion (Integer, Win32.UINT); Reference : aliased Win32.OleAuto.HREFTYPE; begin Check_HR( Source.ITypeInfo_Pointer.lpVtbl.GetRefTypeOfImplType(Source.ITypeInfo_Pointer, To_UINT(Index), Reference'Unchecked_Access ) ); Get_Reference(Source, Reference, In_To); end Get_Interface_Reference;