Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!psuvm.bitnet!cunyvm!!cmx!goedel!chris From: chris@goedel.uucp (Chris White) Newsgroups: comp.windows.news Subject: Re: stringtype => dicttype Message-ID: <1393@cmx.npac.syr.edu> Date: 6 Apr 89 15:12:19 GMT References: <3230.8904051131@prsun5f.prl.philips.co.uk> Sender: usenet@cmx.npac.syr.edu Reply-To: chris@logiclab.cis.syr.edu (Chris White) Organization: Logic Lab, CIS Dept., Syracuse University Lines: 32 In article <3230.8904051131@prsun5f.prl.philips.co.uk> davidw@prlhp1.UUCP (David Walker) writes: > > In a cps application it does not see, possible to pass a dicttype >from the c code to postscript. You can only pass strings or ints and >there is no postscript command to convert a string into a dict name. >Does anyone know how to do this, if it is possible. > > david walker >davidw@prl.philips.co.uk Assuming you have passed the following into NeWS from C: (10 dict begin /somekey (Value) def end) you can run it by using the: (stringval) cvx exec operator combination. I'm pretty sure this works, but I can't test it now -- I'm at home on a Mac without any PostScript references. If that's not the exact command, it's something similiar though. -- Chris White ps. I tried to send mail, but the address didn't work. Always the way when I try to reply. Hey, anyone feel like using that wy program to make a good NeWS interface for rn -- that'd be really cool. It could have a scrollable list of topics (a la '=') and bring up an article window when the topic is selected. You could have multiple article windows so that you could compare and contrast. Okay, maybe I'm getting carried away...but I'd try it if I didn't have other pet projects to do.