Re: Shroud ???

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan writes:
> If I include machine.e in a file and wish to reference the
> crash_message function in my program after I have
> shroud the program I get a message that the
> crash_message has not been declared.
>
> I thought that any built-in function would be reconized
> even if it is shrouded.

crash_message() is just a routine in machine.e, like dozens
of others. There is nothing special about it as far as
shrouding is concerned.

> Is this a Bug in the crash message
> or shroud function ?

Neither. Judging from your Linux graphics library,
it appears that you are not trying to shroud a program,
but just a single include file that calls crash_message()
from machine.e.

If you shroud a whole program like most people do,
things will work fine. When you shroud an include file,
that file plus any files that it includes (such as machine.e)
will be pulled together into a single stand-alone shrouded file,
where only the global symbols in the *main* include file
will retain their "global" status. crash_message() is no
longer declared as global, so it's not visible to those
who include your file.

Probably, the user of your include file should include
his own copy of machine.e. To save space, if
crash_message() is the only routine you need from
machine.e, you could simply copy it into your file and not
include machine.e.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu