realbasic-nug
[Top] [All Lists]

Re: "You're not going to learn how to program in BASIC any more"

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: "You're not going to learn how to program in BASIC any more"
From: Will Leshner <will at haranbanjo dot com>
Date: Fri, 30 Sep 2005 09:41:07 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=cWFcNtlqyLXARmferM1AKsIf82bXpWqFy/b4MJMWLkTpXgZ3lrDHH2uhj0LCtVnSCfPXKKvRdVHw9nIdztgIoTfli2o/W5fuAHWLQgh6fvCkw+IPuOK1rdzPfa5WaH/ato2vu36psYhmBi2MbOkMms4pEIkkpwje572Z7A2yDi4=
References: <20050930142614 dot C65A0DDD465 at lists dot realsoftware dot com> <433D5E28 dot 1090302 at wanadoo dot fr> <70af859d6b5bbb44e39f618e4646a05a at mac dot com>

On Sep 30, 2005, at 9:32 AM, Alex Lindsay wrote:

int array[10];

is the same as

int *array = new int[10];


Actually, those two aren't the same. One has its memory on the stack while the other has its memory in the heap. That's an important distinction because with the former you don't have to worry about freeing memory, but with the later, you do.

--
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>