THAW (Theaters Against War) will be broadcasting from WNYE 91.5 FM tomorrow, Friday Feb 21st from 8am-9am.
The hour will include short plays written for the upcoming THAW Action Day on March 2nd, a scene from the currently running Anti-War Comedy WARRIORS (information below), and much else.
![]() |
WARRIORS
By Michel Garneau
Directed by Nicholas Keene
With Tony Torn & Nicholas Keene
@
The P.I.T
154 West 29th Street
(W. 29th street btw 7th & 6th Avenues)
New York, NY 10036
2nd FloorTickets $15
Discounts Available
FRI/SAT 10pm
CALL 212-367-8225 for Reservations
This weekend!!! POETS : 2 for 1
Note the new asterisks whenever we reference favoriteNumber, except for that new line right before the return.
Posted by: Sampson on January 18, 2004 07:25 PMLet's take a moment to reexamine that. What we've done here is create two variables. The first variable is in the Heap, and we're storing data in it. That's the obvious one. But the second variable is a pointer to the first one, and it exists on the Stack. This variable is the one that's really called favoriteNumber, and it's the one we're working with. It is important to remember that there are now two parts to our simple variable, one of which exists in each world. This kind of division is common is C, but omnipresent in Cocoa. When you start making objects, Cocoa makes them all in the Heap because the Stack isn't big enough to hold them. In Cocoa, you deal with objects through pointers everywhere and are actually forbidden from dealing with them directly.
Posted by: Christiana on January 18, 2004 07:25 PMBut variables get one benefit people do not
Posted by: Clement on January 18, 2004 07:26 PMEarlier I mentioned that variables can live in two different places. We're going to examine these two places one at a time, and we're going to start on the more familiar ground, which is called the Stack. Understanding the stack helps us understand the way programs run, and also helps us understand scope a little better.
Posted by: Mary on January 18, 2004 07:26 PMFor this program, it was a bit of overkill. It's a lot of overkill, actually. There's usually no need to store integers in the Heap, unless you're making a whole lot of them. But even in this simpler form, it gives us a little bit more flexibility than we had before, in that we can create and destroy variables as we need, without having to worry about the Stack. It also demonstrates a new variable type, the pointer, which you will use extensively throughout your programming. And it is a pattern that is ubiquitous in Cocoa, so it is a pattern you will need to understand, even though Cocoa makes it much more transparent than it is here.
Posted by: Ursula on January 18, 2004 07:27 PM