Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6777 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75093 invoked by uid 1010); 3 Jan 2004 21:35:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75049 invoked from network); 3 Jan 2004 21:35:52 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 3 Jan 2004 21:35:52 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i03LZpWr029588 for ; Sat, 3 Jan 2004 22:35:52 +0100 Date: Sat, 3 Jan 2004 22:35:51 +0100 (CET) X-X-Sender: derick@localhost To: PHP Developers Mailing List Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: $a{} stuff From: derick@php.net (Derick Rethans) Hello, due to a little discussion on IRC I noticed that the following code works: now IMO the offset should only be a simple integer value, as this is a little bit too much magic to me (and perlish). Although the code above can have it's use, the following does also work fine: file1.php file2.php echos 'a'. I think this sideeffect should be disallowed as it adds a lot of unreadableness to code. (I do als vagely remember a discussion a year or something ago which resulted in something like "the offset to a string should be an integer only, and not for example {1..4} or {-1}". Can't find this though in the archives. regards, Derick