how do I declare a constant as a variable of a different type

John Patrick Galvin jpg at worf.ssw.com
Sat May 25 08:10:50 AEST 1991


In article <16452 at helios.TAMU.EDU> Sharma Anupindi writes:

>Now I want to declare the string I have read from the file as a different 
>variable.

You cannot do this with a compiled language. Only interpreted languages
can support 'ad-hoc' data typing and declarations. I suggest you redesign
your logic or go back to using LISP.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| John P. Galvin        | Internet:       jpg at worf.ssw.com                |
| Soft-Switch, Inc.     | X.400: CN:      US                              |
| 640 Lee Road          |        ADMD:    ATTMAIL, Dialcom, MCI, Mark400  |
| Wayne, PA 19087-5698  |                 Telemail, Western Union         |
| Voice: (215) 651-5342 |        PRMD:    Softswitch                      |
| Fax:   (215) 651-5358 |        SURNAME: Galvin                          |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Comp.unix.questions mailing list