Welcome to iraf.net Monday, May 13 2024 @ 11:33 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 char vs string variables
   
Jason Quinn
 10/13/2008 08:55PM (Read 3143 times)  
+++++
Active Member

Status: offline


Registered: 04/07/2006
Posts: 175
I only just now noticed that you can use char variables in IRAF like strings. In fact, I haven't even found a difference between them. Is there? Seems risky.Jason

 
Profile Email
 Quote
fitz
 10/13/2008 08:55PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Internally, a 'char' and a 'string' type declaration are the same. I'm not sure whether this started as a convenience or was intended to allow strings to grow thru concatenation. As for 'risky', nobody seems to complain too much about stuff like this in loosely-typed languages like Python ...........Cheers,
-Mike

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login