🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.programy.flash-5
Article #347

Re: tablica[1][2]- hmm?!

#347
From: Maciek Wcislik
Date: Thu, 03 Jan 2002 13:29
32 lines
1511 bytes
> > //tworzenie
> > c = [[1,2],[3,5]];
> > //wykorzystanie
> > b = c[0][1];
> > trace(b);
> > //wynik: 2
>
> o cool!
> tylko zastanawia mnie dlaczego obylo się bez definowania tablicy za pomocą
> new Array()?
>
> Łasic

:)))
bo:

k = [5];  // to sie rowna
k = new Array();
k[0] = 5;

k = "maciek"; //to sie rowna
k = new String();
k = "maciek";

k = {a:10, b:15}; //to sie rowna
k = new Object();
k.a = 10;
k.b = 15;

uproszczenie skladni
pozdro
maciek
Technical Details
Message-ID: <a11luv$8g8$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.ipartners.pl!news.internetia.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <27344-1010014679@as2-185.swietochlowice.dialup.inetia.pl> <a11cpv$528$1@news.tpi.pl> <17578-1010058331@as4-143.swietochlowice.dialup.inetia.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.ipartners.pl!news.internetia.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Maciek Wcislik" <maciek.wcislik@lostboys.pl>
Newsgroups: alt.pl.programy.flash-5
Subject: Re: tablica[1][2]- hmm?!
Date: Thu, 3 Jan 2002 14:29:05 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 35
Message-ID: <a11luv$8g8$1@news.tpi.pl>
References: <27344-1010014679@as2-185.swietochlowice.dialup.inetia.pl> <a11cpv$528$1@news.tpi.pl> <17578-1010058331@as4-143.swietochlowice.dialup.inetia.pl>
NNTP-Posting-Host: 217.11.136.41
X-Trace: news.tpi.pl 1010064160 8712 217.11.136.41 (3 Jan 2002 13:22:40 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 3 Jan 2002 13:22:40 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit