1. global ?? not off the subject
- Posted by Bernie Ryan <xotron at BUFFNET.NET>
Mar 25, 2000
-
Last edited Mar 26, 2000
If I declare a user type as global.
When I declare a variable of that user defined type, is that variable
automatically global or do I have to also declare that variable as
global ?
2. Re: global ?? not off the subject
- Posted by Everett Williams <rett at GVTC.COM>
Mar 25, 2000
-
Last edited Mar 26, 2000
On Sat, 25 Mar 2000 22:20:39 -0500, Bernie Ryan <xotron at BUFFNET.NET> wrote:
>If I declare a user type as global.
>
> When I declare a variable of that user defined type, is that variable
>
> automatically global or do I have to also declare that variable as
>
> global ?
A type is just an implicitly called function whose value is only provided to
the error handler. If it is made global, it can be accessed anyplace in the
code after the point of it's declaration. That should not force variables
using it to be global.
Everett L.(Rett) Williams
rett at gvtc.com
3. Re: global ?? not off the subject
------Original Message------
From: Everett Williams <rett at GVTC.COM>
To: EUPHORIA at LISTSERV.MUOHIO.EDU
Sent: March 26, 2000 4:04:58 AM GMT
Subject: Re: global ?? not off the subject
On Sat, 25 Mar 2000 22:20:39 -0500, Bernie Ryan <xotron at BUFFNET.NET> wrote:
>If I declare a user type as global.
>
> When I declare a variable of that user defined type, is that variable
>
> automatically global or do I have to also declare that variable as
>
> global ?
A type is just an implicitly called function whose value is only provided to
the error handler. If it is made global, it can be accessed anyplace in the
code after the point of it's declaration. That should not force variables
using it to be global.
Everett L.(Rett) Williams
rett at gvtc.com
To clarify, your user-defined type is global so you can declare other
variables of that type in other modules of your code.This doesn't affect the
scope of your newly declared variable though.
(ie. A variable declared globally as user-type will be available throughout
your all of your code, otherwise it is local to the file it resides in.)
CLEAR?
--Chris Bensler
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
4. Re: global ?? not off the subject
Thanks Rett and Chris
Bernie