Re: [SMARTY] Class::method() in if tags

From: Date: Sat, 13 Mar 2004 09:28:51 +0000
Subject: Re: [SMARTY] Class::method() in if tags
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11112@lists.php.net to get a copy of this message
On Fri, 12 Mar 2004 17:13:17 -0800 (PST) boots <jayboots@yahoo.com> wrote: > What I was hoping to drive at is that it should make no difference to > the template writer how the underlying function call is made--forcing > them to differentiate between static calls and instance calls is not > something that should need to be documented, explained or taught -- > simply because it should be transparently handled for them, IMO. If I get you right you want to unify $mail->send() and Mail::send() to use the same syntax. I don't like that at all, just think you have a class Mail and an instace $Mail (though the naming is not very convenient) then you can't distinguish Mail::send from $Mail->send() anymore, can you? The static double colon syntax shouldn't be a difficulty for the designers, it looks totally the same as an ordinary function call. (There's no need for them to know they're dealing with a class actually) greetings - david

« previous php.smarty.general (#11112) next »