Brad Fitzpatrick (brad) wrote in fotobilder,
Brad Fitzpatrick


whitaker's new group editor is in CVS.

mart and I are adding null object support to S2. He sent me a patch which did a lot of it, but I found some cases where it could be better.

layerinfo "type" = "core";
layerinfo "majorversion" = 0;

class Tree { function grow; }
class Maple extends Tree { }
class Oak extends Tree { }

function Tree::grow { "Tree grows.\n"; }
function Maple::grow { "Maple grows.\n"; }

function main ()
var Tree t;
$t = new Maple; $t->grow();
$t = new Oak; $t->grow();
var Tree notree;

In that example, it'll print:

Maple grows.
Tree Grows.

And then it'll crash with a weird error the user won't be able to debug.

My proposal to mart would make an intelligent error message be returned, like:

"Method called on null Tree object at Orange Happy Layer (layerid #3532), line 17."

(which is really what one would expect.) If he doesn't find any issue with my implementation plan, that'll happen Sunday.

Still haven't worked out unusual gallery thumbnails yet... greyscale & other variations. But I'm starting to get an idea. I'll post my plan for that Sunday.

Still need banana's color chooser to work in Mozilla & all major IEs.... somebody should help him out with that.

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic