Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: RFloat Message-ID: <8912121254.AA12715@LYRE.MIT.EDU> Date: 12 Dec 89 12:54:28 GMT References: <8912120004.AA00975@foobar.Colorado.EDU> Sender: root@athena.mit.edu (Wizard A. Root) Organization: DEC/MIT Project Athena Lines: 16 Date: Mon, 11 Dec 89 17:04:28 -0700 From: Dirk Grunwald If I pass a floating point number in XtSetArg, it doesn't work. Yes, it will; but you have to jump through hoops to get the C compiler to refrain from doing the courtesy of coercing your float to an int. The best way we've been able to figure out to do this is with a union containing a float and a long. I'd like to be able to e.g. pass a string and have it parsed by the converter. You'll be able to do this with an R4-compliant Xt via a new additional set of interfaces.