Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83149 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28370 invoked from network); 19 Feb 2015 07:14:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 07:14:29 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.179 mail-vc0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:45752] helo=mail-vc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/C0-22021-45D85E45 for ; Thu, 19 Feb 2015 02:14:28 -0500 Received: by mail-vc0-f179.google.com with SMTP id hy4so561340vcb.10 for ; Wed, 18 Feb 2015 23:14:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xvbL84lyqpXduy43CWsR233Dgu/xn+fkQ2szSQ0e+AQ=; b=iBItNrfUQhZcsn5jaRRyq4KMty+U8RhNX3tGB5D5s3Pt0//v3rJh+nKSfeHfH4oAbL ElCrV5CgNM6w83cLr96sitCFQP7kTAcXpaZvKU6TktWHyz0r0gNBj9tYyz85LAcOhwC5 VF3MzD6P6yrbamSvHfOpUwS97P4MregBkGj28y2jtawi38+zLCab1h+WxVBB7ufgx0mK Wnoexf2/t4GhdWDSwCvysCUBJJpazafDOAjlqeInDqhtY6ZWrtkN15YdtlQBpE2HKwG4 wrMjSIwNpEuIF5Hr3HNdmYpjvuOQcPAtE9pvzcPr35Chfd2PEqmLX6EjWDjTc3wojxdb IY2Q== X-Gm-Message-State: ALoCoQlskzW2/S9Teq6vkhpSK6pJd9SueXSRsW0n1WystvoAWT35QHN5xcsC5T0cGeo+2JvV73kU+WbBm0aW54jWZOsS2Oq7P2+0VvA37aPH6EOJ8Z7RVWFzQq6n5EKGn8oizR0jO7f+8GlGw1dtpZiauq35F9vz5w== MIME-Version: 1.0 X-Received: by 10.221.44.65 with SMTP id uf1mr1980062vcb.46.1424330066032; Wed, 18 Feb 2015 23:14:26 -0800 (PST) Received: by 10.52.74.73 with HTTP; Wed, 18 Feb 2015 23:14:25 -0800 (PST) In-Reply-To: <03a901d04bd0$5c79eec0$156dcc40$@php.net> References: <02a101d04af9$507484f0$f15d8ed0$@php.net> <02ff01d04b72$abae34a0$030a9de0$@php.net> <032801d04b8d$8ff3dce0$afdb96a0$@php.net> <54E50DE1.3080402@googlemail.com> <03a901d04bd0$5c79eec0$156dcc40$@php.net> Date: Thu, 19 Feb 2015 11:14:25 +0400 Message-ID: To: francois Cc: Crypto Compress , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a11c3ea3ca115b1050f6baf88 Subject: Re: [PHP-DEV] Annotations in PHP7 From: dmitry@zend.com (Dmitry Stogov) --001a11c3ea3ca115b1050f6baf88 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Feb 19, 2015 at 2:12 AM, Fran=C3=A7ois Laupretre wrote: > If I understand Dmitry correctly, this would be stored as the compiler > internal representation of the 'new Entity("foo")' code, but this wouldn'= t > be executed until an external mechanism decides to do so. So, this is PHP > code and it is compiled and stored in memory besides the function opcodes= , > but not evaluated. > Right. It's even not compiled into bytecode, just parsed into AST and then associated with function/class/property like doc-comment. > You're right, it contains code. The key point is that this code will neve= r > be executed nor used in any way until an external mechanism decides to > retrieve and evaluate it. That's metadata. > Right again. Thanks. Dmirty. > > Regards > > Fran=C3=A7ois > > > -----Message d'origine----- > > De : Crypto Compress [mailto:cryptocompress@googlemail.com] > > Envoy=C3=A9 : mercredi 18 f=C3=A9vrier 2015 23:11 > > =C3=80 : PHP Developers Mailing List > > Objet : Re: [PHP-DEV] Annotations in PHP7 > > > > Hi List, > > > > > > > > > this may be off-topic. However i'm wondering how this could be an > > annotation? It looks like code. Why not include this into proper method= ? > > What am i missing? > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c3ea3ca115b1050f6baf88--