Using C-ish code in FreePascal

I really like the pascal syntax and I really like C# syntax, so how can I mix those two together? I wrote a parser which can manage that task.

The following snippet looks like a mixture between C#, C++, Objective-C and JavaScript:

namespace testunit;

@interface

using
  SysUtils;

type
  MyClass : class {
  private
    fMyString: String;

    void addMyself();
  public
    function addThat(): int;
  published
    property MyString: String get fMyString;
  }

@implementation

  void MyClass::addMyself();
  {
  	if (fMyString == "") then
  	{
  	  fMyString = "This is my string.";
  	}
  	else
  	{
  	  fMyString = "This is my new string.";
  	}
  }

  function MyClass::addThat(): int;
  {

  }

@end

Read More

How do you know if you’re chewing too much gum?

You know if you’re accidently bursting a bubble all across your glasses and the gum rest just won’t come off if you try to scratch it off. Great, now I have to get to the bathroom and clean my glasses which I last did about half a year ago.

P.S.: My first non-computer related post. I have to change that. Quickly. Errm… I’m participating at the Ludum Dare competion this weekend. *Relieved sigh* That was close.

Read More

I keep falling back to Ubuntu

Yes, it’s that time of the year again where I try different linux distributions from distrowatch. My hardware is somehow special because my primary development system is an Apple MacBook 3,1 Core 2 Duo with Intel GMA X3100 graphics.

GNOME is a must for me. First of all, I really like the GNOME desktop environment (as long as I get to use a fast computer with a lot of memory) and I’m using DropBox which only works with nautilus. (Yeah, I know, I could start the daemon manually, but I don’t want to.)

On another note: I’ve been using DropBox for about two month now and it’s absolutely amazing. For those of you who doesn’t know what DropBox is: It is a tool which sychronizes data between different systems (Mac, Linux and Windows are supported). Before DropBox came along I used an USB stick and that was kinda annoying because I had to check which files where up-to-date and which were not. And DropBox does that automatically.

Read More

This is where the magic happens…

Click to enlarge

Read More

Object Pascal, we need to talk…

Object Pascal, this is gonna be hard. You see, I have known you for a very long time, about 10 years to be precise, and all these years you have been my number one, my only number one. (Allright, there were Basic and Visual Basic before you came along, but that was more like an experiment if you know what I mean.) We had so much fun together.

Read More