Re: Uninitialized SCM variables

2011-08-18 Thread David Kastrup
Dan Eble d...@faithful.be writes: Backing up… I believe the compiler will initialize the bits in the aforementioned variables to zero, but is zero a desirable default for SCM variables in general, and these in particular? It also just sank in that in another thread there was a statement that

Re: Uninitialized SCM variables

2011-08-18 Thread Reinhold Kainhofer
Am Thursday, 18. August 2011, 11:45:25 schrieb David Kastrup: Dan Eble d...@faithful.be writes: Backing up… I believe the compiler will initialize the bits in the aforementioned variables to zero, but is zero a desirable default for SCM variables in general, and these in particular? It

Re: Uninitialized SCM variables

2011-08-18 Thread Carl Sorensen
On 8/17/11 11:32 PM, Dan Eble d...@faithful.be wrote: Backing upS I believe the compiler will initialize the bits in the aforementioned variables to zero, but is zero a desirable default for SCM variables in general, and these in particular? Yes. In this case, if we were to initialize it,

Re: Uninitialized SCM variables

2011-08-17 Thread Carl Sorensen
\On 8/16/11 10:25 PM, Dan Eble d...@faithful.be wrote: Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with guile, but it looks dangerous. SCM context_property_lookup_table; SCM grob_property_lookup_table; SCM

Re: Uninitialized SCM variables

2011-08-17 Thread Reinhold Kainhofer
Am Wednesday, 17. August 2011, 13:53:40 schrieb Carl Sorensen: \On 8/16/11 10:25 PM, Dan Eble d...@faithful.be wrote: Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with guile, but it looks dangerous. SCM

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
Carl Sorensen c_soren...@byu.edu writes: \On 8/16/11 10:25 PM, Dan Eble d...@faithful.be wrote: Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with guile, but it looks dangerous. SCM context_property_lookup_table; SCM

Re: Uninitialized SCM variables

2011-08-17 Thread Graham Percival
On Wed, Aug 17, 2011 at 05:53:40AM -0600, Carl Sorensen wrote: \On 8/16/11 10:25 PM, Dan Eble d...@faithful.be wrote: Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with guile, but it looks dangerous. I guess the code in

Re: Uninitialized SCM variables

2011-08-17 Thread Phil Holmes
- Original Message - From: Graham Percival gra...@percival-music.ca To: Carl Sorensen c_soren...@byu.edu Cc: lilypond-devel Development lilypond-devel@gnu.org Sent: Wednesday, August 17, 2011 5:48 PM Subject: Re: Uninitialized SCM variables On Wed, Aug 17, 2011 at 05:53:40AM -0600

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Wed, Aug 17, 2011 at 05:53:40AM -0600, Carl Sorensen wrote: \On 8/16/11 10:25 PM, Dan Eble d...@faithful.be wrote: Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
Phil Holmes m...@philholmes.net writes: In C-style languages, uninitialised variable are uninitialised and therefore have an indeterminant value. Wrong for statically allocated variables. Hence the danger of uninitialised pointers. Some other languages do initialise them to 0 - visual basic

Re: Uninitialized SCM variables

2011-08-17 Thread Graham Percival
On Wed, Aug 17, 2011 at 07:26:19PM +0200, David Kastrup wrote: Graham Percival gra...@percival-music.ca writes: [1] or rather, the C standard does not specify that an uninitalized variable should be set to 0, so I do not blame gcc in the least; it was the programmer at fault. The C

Re: Uninitialized SCM variables

2011-08-17 Thread Dan Eble
On 2011-08-17, at 13:03 , Phil Holmes wrote: - Original Message - From: Graham Percival gra...@percival-music.ca To: Carl Sorensen c_soren...@byu.edu Cc: lilypond-devel Development lilypond-devel@gnu.org Sent: Wednesday, August 17, 2011 5:48 PM Subject: Re: Uninitialized SCM

Uninitialized SCM variables

2011-08-16 Thread Dan Eble
Is there a reason that these variables in lily/profile.cc don't need to be initialized? I don't have experience with guile, but it looks dangerous. SCM context_property_lookup_table; SCM grob_property_lookup_table; SCM prob_property_lookup_table; -- Dan