Using C-ish code in FreePascal
Posted by Johannes Stein on Dec 3, 2009 in Development, Miscellaneous | 0 comments
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?
Posted by Johannes Stein on Apr 17, 2009 in Miscellaneous | 0 comments
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 MoreI keep falling back to Ubuntu
Posted by Johannes Stein on Apr 7, 2009 in Linux, Miscellaneous, OS-related | 0 comments
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 MoreThis is where the magic happens…
Posted by Johannes Stein on Mar 9, 2009 in Miscellaneous | 0 comments
Click to enlarge
Read MoreObject Pascal, we need to talk…
Posted by Johannes Stein on Feb 5, 2009 in Miscellaneous, Satire | 0 comments
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