Large software projects can often include multiple components written in different software languages. One difficulty in interacting between these components is that of handling values stored in different formats.
One embodiment of the present invention is a method to store variables for use with different programming languages comprising passing by reference to a container and using an accessor method associated with the container to convert the values to a desired format.
In one embodiment, different programs written on different programming computers can pass by reference the value between themselves. The containers with the associated accessor methods can convert the value to the desired format. In one embodiment, this can be done in a way to isolate the programmer from the details of the value type.
In one embodiment, programs written in different programming languages can use the container to pass values. For example, a JavaScript program 114 can provide a value using the container 102 to a Java program 116. The container 102 can be used to convert the type of the value as needed. In one embodiment, the container can attempt to convert the type of the value to allow an instruction to occur without an error. For example, if a value with a date type is to be added to an integer, the value with a date type, for example, can be converted into an integer type then optionally converted back into a date type.
The container in
The code and containers are interoperable such that the container can be used to robustly pass values between programs of different programming languages.
One embodiment may be implemented using a conventional general purpose or a specialized digital computer or microprocessor(s) programmed according to the teachings of the present disclosure, as will be apparent to those skilled in the computer art. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art. The invention may also be implemented by the preparation of integrated circuits or by interconnecting an appropriate network of conventional component circuits, as will be readily apparent to those skilled in the art.
One embodiment includes a computer program product which is a storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the features presented herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, micro drive, and magneto-optical disks, ROMs, RAMs, EPROM's, EEPROM's, DRAMSs, flash memory devices, magnetic or optical cards, Nano systems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Stored on any one of the computer readable medium (media), the present invention includes software for controlling both the hardware of the general purpose/specialized computer or microprocessor, and for enabling the computer or microprocessor to interact with a human user or other mechanism utilizing the results of the present invention. Such software may include, but is not limited to, device drivers, operating systems, execution environments/containers, and user applications.
The foregoing description of preferred embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to one of ordinary skill in the relevant arts. For example, steps performed in the embodiments of the invention disclosed can be performed in alternate orders, certain steps can be omitted, and additional steps can be added. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.
This application claims priority from the following co-pending application, which is hereby incorporated in their entirety: U.S. Provisional Application No. 60/797,535 entitled INTER LANGUAGE INTEROPERABILITY USING A VARIANT TYPE, filed by John C. Schneider et al., filed May 4, 2006.
Number | Name | Date | Kind |
---|---|---|---|
5732270 | Foody et al. | Mar 1998 | A |
6055370 | Brown et al. | Apr 2000 | A |
6167565 | Kanamori | Dec 2000 | A |
6314429 | Simser | Nov 2001 | B1 |
6754884 | Lucas et al. | Jun 2004 | B1 |
7058645 | Seto et al. | Jun 2006 | B2 |
7096419 | Barnes et al. | Aug 2006 | B2 |
7194485 | Kaipa et al. | Mar 2007 | B2 |
7194729 | Stone et al. | Mar 2007 | B2 |
7454743 | Fuchs | Nov 2008 | B2 |
7543271 | Gadre | Jun 2009 | B2 |
7546335 | Moeller et al. | Jun 2009 | B2 |
7669184 | Bracha et al. | Feb 2010 | B2 |
7669191 | Kelly et al. | Feb 2010 | B1 |
20020073399 | Golden | Jun 2002 | A1 |
20030106041 | Stone et al. | Jun 2003 | A1 |
20030110446 | Nemer | Jun 2003 | A1 |
20040015840 | Walker | Jan 2004 | A1 |
20040015849 | Sanchez, II | Jan 2004 | A1 |
20040177160 | Seto et al. | Sep 2004 | A1 |
20040255267 | Meijer | Dec 2004 | A1 |
20050010902 | Takacsi-Nagy et al. | Jan 2005 | A1 |
20050114394 | Kaipa et al. | May 2005 | A1 |
20050149914 | Krapf et al. | Jul 2005 | A1 |
20060225053 | Lakshman et al. | Oct 2006 | A1 |
20090254601 | Moeller et al. | Oct 2009 | A1 |
Number | Date | Country | |
---|---|---|---|
20080134153 A1 | Jun 2008 | US |
Number | Date | Country | |
---|---|---|---|
60797535 | May 2006 | US |