Brad Fitzpatrick (brad) wrote in fotobilder,
Brad Fitzpatrick
brad
fotobilder

S2 changes

Per Mart's bug report and request, string stuff in S2 has been cleaned up.

Quick review:

# this already worked... string to object(string) constructor:
var Color c;
$c = "#123456";

# this already worked:
"Your color is: $c";

# but due to an optimization bug, this was broken:
"$c";
# (but it works now)

# this is new:
var string s;
$s = $c;

In that last case, NodeAssignExpr just forces its rhs expected type to string when it sees its left side is a string.

The basic change in the compiler is getType() takes an optional wanted type which different nodes can try and coerce their contents into.

Next up: readonly class variables. That should be easy.
Subscribe

  • 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

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic
  • 0 comments