FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » require*/include*: compile-time or runtime?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: require*/include*: compile-time or runtime? [message #170932 is a reply to message #170927] Thu, 09 December 2010 05:32 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 12/8/2010 7:11 PM, Helmut Chang wrote:
> Am 08.12.2010 20:30, schrieb pakalk:
>
>> What compile-time instructions do u know in interpreted language?
>
> "Interpreted language" doesn't mean, the code isn't compiled. The
> difference is, that a program, written in an interpreted language is
> compiled each time, (before) the program runs.
>
> And there are compile-time instructions in PHP. An example are class
> constants. Those are evaluated during compile time and therefore you
> cannot use constructs like:
>
> const FOO = 'Foo'.'Bar';
>
> or
>
> const BAR = 1 + 2;
>

Yes, unfortunately, this is still a shortcoming in PHP. A good
compile/interpreter should be able to handle both cases.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: drupal php google analytics
Next Topic: Adsense approval Trick
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 20:26:23 GMT 2024

Total time taken to generate the page: 0.04499 seconds