final keyword

From: Date: Tue, 12 Feb 2008 10:56:30 +0000
Subject: final keyword
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-35403@lists.php.net to get a copy of this message
Hey you guys, it would be very helpful to be able using the keyword _final_ not only for classes and methods but for variables as well - such as <?php public class foo { public static final $bar = "foobar's world"; } ?> to prevent changes from outside though at least publicly readable. Sebastian

« previous php.internals (#35403) next »