Thursday, July 30, 2015

A Quirk of C, Bad Vinegar, and An Old Creation

Today I learned:
1) In C, variables have variable scope by default. Sort of. They can be modified by statements with more interior scope, but aren’t by default made accessible by outer scopes. What I mean is that if you do the following:

int x = 0;
int foo()
{
  x = 1;
}
foo();
printf(“%d”, x);

it will print “1”, because x was modified by foo (!!!!), while if you do

int foo()
{
  int x = 1;
}
foo();
printf(“%d”, x);

you will get a compilation error because x doesn’t exist. The second thing makes total sense. The first thing disturbs me in some mild-but-deep way.

2) Fruit vinegars can, in fact, go bad. Surprisingly bad.

3) I still have a copy of our old custom planechase cards (@Chris Lennox, @Lady Jade Beacham). I also happen to know that Caution has a copy. Did we duplicate them at some point?

No comments:

Post a Comment