Re: try...catch and local variables
- From: "Marc Gravell" <marc.gravell@xxxxxxxxx>
- Date: Tue, 21 Nov 2006 17:27:38 -0000
I am not sure if memory for local variable
declarations is primed with zeros. Is it
somewhere in the language specifications?
ECMA-334, §12 "A variable shall be definitely assigned (§12.3) before its
value can be obtained."
So within the language, it is irrelevant (an implementation detail) whether
the variable is zero'd - as you cannot legally look to see. The CLR may
behave differently, but since this is a C# NG...
Marc
.
- Follow-Ups:
- Re: try...catch and local variables
- From: Sericinus hunter
- Re: try...catch and local variables
- References:
- Re: try...catch and local variables
- From: Mythran
- Re: try...catch and local variables
- From: Sericinus hunter
- Re: try...catch and local variables
- Prev by Date: Re: Creat an Installation package for client and server
- Next by Date: Re: Network Application - basic question
- Previous by thread: Re: try...catch and local variables
- Next by thread: Re: try...catch and local variables
- Index(es):
Relevant Pages
|