comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » make_scalar?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
make_scalar? [message #54366] Fri, 01 June 2007 16:19
Marshall Perrin is currently offline  Marshall Perrin
Messages: 44
Registered: December 2005
Member
Is there an equivalent of make_array that will create a scalar variable,
of a type only specified at runtime? Of course I can just create an
array and then truncate it to a scalar,
v = (make_array(1,type=typecode))[0]
but that seems kind of convoluted. I searched around a bit and didn't
find anything, but perhaps I'm missing something obvious. I do that
from time to time. :-)

- Marshall
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: compiling many routines at once
Next Topic: Why does '[1,2,3] EQ [2]' yield zero but '[1,2,3] EQ 2' yield [0,1,0] ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:12:17 PDT 2025

Total time taken to generate the page: 0.00574 seconds