[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Uninitialized SCM variables
From: |
David Kastrup |
Subject: |
Re: Uninitialized SCM variables |
Date: |
Wed, 17 Aug 2011 14:01:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Carl Sorensen <address@hidden> writes:
> \On 8/16/11 10:25 PM, "Dan Eble" <address@hidden> 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_table;
>
> I guess the code in this section relies on the fact that the compiler will
> initialize the unitialized value to zero. Do you believe that is a
> problem?
0 is not a value that the garbage collector will see meaning in.
A detailed analysis will likely find that this causes no problems, but
where is the point in keeping code around that requires a detailed
analysis? It would be better to spend the analysis on real
complications rather than sloppy code.
--
David Kastrup
- Uninitialized SCM variables, Dan Eble, 2011/08/17
- Re: Uninitialized SCM variables, Carl Sorensen, 2011/08/17
- Re: Uninitialized SCM variables, Reinhold Kainhofer, 2011/08/17
- Re: Uninitialized SCM variables,
David Kastrup <=
- Re: Uninitialized SCM variables, Graham Percival, 2011/08/17
- Re: Uninitialized SCM variables, Phil Holmes, 2011/08/17
- Re: Uninitialized SCM variables, David Kastrup, 2011/08/17
- Re: Uninitialized SCM variables, Dan Eble, 2011/08/18
- Re: Uninitialized SCM variables, David Kastrup, 2011/08/18
- Re: Uninitialized SCM variables, Reinhold Kainhofer, 2011/08/18
- Re: Uninitialized SCM variables, Carl Sorensen, 2011/08/18
- Re: Uninitialized SCM variables, David Kastrup, 2011/08/17
- Re: Uninitialized SCM variables, Graham Percival, 2011/08/17