Reply to Re: A PHP fork

Your name:

Reply:


Posted by Mladen Gogala on 07/07/06 18:49

On Thu, 06 Jul 2006 13:48:23 -0700, Chung Leong wrote:

> For the past few months I've been working on a fork of PHP from the
> version 4 source code. I call the new dialect "Polar." It's different
> from PHP 5 in that it's a procedural-centric language. One of the key
> additions is function overloading, which lets you do polymorphism
> procedurally:
>
> function db_query($sql, $db:MySQLDB) {
> /* MySQL-specific code here */
> }
>
> function db_query($sql, $db:PostgresDB) {
> /* Postgres-specific code here */
> }
>
> Aside from that there are many other enhancements like a float-based
> datetime type and a Unicode string type. It's pretty neat. You can find
> more information at http://www.polarwiki.net/. The site is hosted on
> the Polar itself, though it's running mostly PHP apps. I have built a
> standalone Windows program that demonstrate the new features. You can
> download it at the the web site.
>
> Right now I'm just an army of one. I'm definitely looking for more
> help. Drop a note in the message forum if you interested. Any comments
> are welcomed too.

Chung, you're one of my favorite PHP masters and I learned few things from
you on this group, but the work you're doing has already been done. PHP
runkit extension, by Sara Golemon, has this possibility:

RUNKIT_IMPORT_OVERRIDE (integer)

runkit_import() flag indicating that if any of the imported functions,
methods, constants, or properties already exist, they should be
replaced with the new definitions. If this flag is not set, then any
imported definitions which already exist will be discarded.

This sounds very much like overloading to me.


--
http://www.mgogala.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация