delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/06/20:38:13

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Volatile
Date: Wed, 06 Aug 1997 10:47:13 -0700
Organization: Alcyone Systems
Lines: 18
Message-ID: <33E8B8A1.7A15746F@alcyone.com>
References: <33E8495B DOT 3EBC AT starnets DOT ro>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Korenschi Francisc Eduard wrote:

>   I know it sounds crazy, but what does the 'voltaile' with a
> variable/function ?

A volatile variable is one that the compiler will make no assumptions
about.  This can be important, when the contents of a variable can change
without the compiler knowing about it (say, due to a time interrupt).

I don't believe volatile has any meaning with functions.

-- 
       Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
   "Love is not love which alters / when it alteration finds."
                                 / William Shakespeare, _Sonnets_, 116

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019