Re: Uninitialized SCM variables

2011-08-18 Thread Carl Sorensen
On 8/17/11 11:32 PM, "Dan Eble" 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, it would b

Re: Uninitialized SCM variables

2011-08-18 Thread Reinhold Kainhofer
Am Thursday, 18. August 2011, 11:45:25 schrieb David Kastrup: > Dan Eble 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

Re: Uninitialized SCM variables

2011-08-18 Thread David Kastrup
Dan Eble 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 > treating

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" > > To: "Carl Sorensen" > Cc: "lilypond-devel Development" > Sent: Wednesday, August 17, 2011 5:48 PM > Subject: Re: Uninitialized SCM varia

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 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 standard guarantee

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
"Phil Holmes" 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 is an example

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
Graham Percival writes: > On Wed, Aug 17, 2011 at 05:53:40AM -0600, Carl Sorensen wrote: >> \On 8/16/11 10:25 PM, "Dan Eble" 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. >

Re: Uninitialized SCM variables

2011-08-17 Thread Phil Holmes
- Original Message - From: "Graham Percival" To: "Carl Sorensen" Cc: "lilypond-devel Development" Sent: Wednesday, August 17, 2011 5:48 PM Subject: Re: Uninitialized SCM variables On Wed, Aug 17, 2011 at 05:53:40AM -0600, Carl Sorensen wrote: \

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" 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 this sec

Re: Uninitialized SCM variables

2011-08-17 Thread David Kastrup
Carl Sorensen writes: > \On 8/16/11 10:25 PM, "Dan Eble" 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

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" 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_lo

Re: Uninitialized SCM variables

2011-08-17 Thread Carl Sorensen
\On 8/16/11 10:25 PM, "Dan Eble" 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 prob_property_lookup_tab

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 ___