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

Home » Public Forums » archive » Re: procedure name quirk
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: procedure name quirk [message #49075 is a reply to message #49074] Tue, 13 June 2006 02:44 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi,

it's all about identifiers. Variable names, function/procedure names,
structure names are identifiers.

In theory, the IDL 6.3 manual says:

Each identifier must begin with a letter and can contain from 1 to 128
characters. The second and subsequent characters can be letters, digits,
the underscore character, or the dollar sign.

In practice, _ (for _extra) and ! (for system variables) are also
permitted as leading character. (The manual even lists _INIT as
unacceptable variable name, but IDL happily accepts it :-)

A quick check shows that other characters are not accepted:

for i=32b,127b do $
if ( idl_validname(string(i)) ne '' ) then $
print, string(i)

prints only _, ! and letters.

The 8-bit version of this test is left to the reader :-)
just an example:

IDL> Ö=1 ; character 214
IDL> help
% At $MAIN$
V INT = 1

Ö is converted to char 86 (ie highest bit masked).

regards,
lajos


On Tue, 13 Jun 2006, Martin Rother wrote:

> it is possible to write a procedure named '!'.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: structures still confusing
Next Topic: Re: structures still confusing

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

Current Time: Fri Oct 10 03:51:48 PDT 2025

Total time taken to generate the page: 1.12047 seconds