Re: Class Constant Finalization

From: Date: Wed, 25 Jan 2017 08:27:30 +0000
Subject: Re: Class Constant Finalization
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-97955@lists.php.net to get a copy of this message
They don't belong to a class only, but to a class and all its descendants. Ideally, descendants should not inherit constants (or anything static), but we can't change that now, so final could make sense here. Basically, they should work exactly like static fields, except that static fields can be re-assigned, while constants may not.

« previous php.internals (#97955) next »