Pages: 1
  Print  
Author Topic: Merry Christmas  (Read 2302 times)
Offline (Male) Josh @ Dreamland
Posted on: December 25, 2009, 03:01:18 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
I wanted to have a community-size test out today to begin the debug process, but STL provided me with more debugging goodness than I could ever have wanted.
For example, as it happens, they have created a set of templates (templates can be defined as 'crude, bitter replacements for a system that has worked for years without triangular-bracket goodness') which compare if two types are equal. It looks like this:

Code: [Select]
  template<typename, typename>
    struct __are_same
    {
      enum { __value = 0 };
      typedef __false_type __type;
    };

  template<typename _Tp>
    struct __are_same<_Tp, _Tp>
    {
      enum { __value = 1 };
      typedef __true_type __type;
    };

ENIGMA produces a loud wail if the first template above has anything in it. Yes, that's my fault entirely, but this shouldn't be a concern; these templates effectively accomplish nothing but are included by things anyway. Honestly, it's like saying string("string") just to be sure you're dealing with a string. And that's the closest I can compare it to in GML. I remeber when Dylan implemented is_real.

double is_real(double) { return true; }
double is_real(int) { return true; }
double is_real(bool) { return true; }

Anyone who understands a little about operator overloading is laughing right now, but only the truly brave are laughing at the templates above.

But anyway, it's Christmas. A time to forget how angry you are at every code input box in your vicinity, as well as the developers who made said box possible. A time to pretend that the godawful wail is actually a none-to-well-executed rendition of Jingle Bells. Best wishes to everyone; I'll probably be a few 60 miles north of here tomorrow with my lap top. Maybe sleeping, considering it's three in the morning and all I wanted was to have something to pass out today. <____<"

Instead, I'll just be passing out in general, and I welcome you all to do the same.
Merry Christmas guys, and thanks for your support.

(Maybe I can squeeze out a release by New Year's if I keep sleeping like this... [Actually, I'm better off taking the sleep])
« Last Edit: December 25, 2009, 03:07:38 AM by Josh @ Dreamland » Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) The 11th plague of Egypt
Reply #1 Posted on: December 25, 2009, 08:37:36 AM
Member
Joined: Dec 2009
Posts: 284

View Profile
Merry Christmas.

BTW How bad is this?
Logged
Offline (Male) Josh @ Dreamland
Reply #2 Posted on: December 25, 2009, 10:08:50 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
It's manageable. Will probably cost me more code, in addition to some more thought, but it'll be fine.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) kkg
Reply #3 Posted on: December 26, 2009, 11:28:03 PM

Member
Location: Australia
Joined: Nov 2009
Posts: 84
MSN Messenger - kamikazigames@gmail.com
View Profile Email
Merry Christmas Josh and everyone else :D
Logged
PC: Core i7-2600 @ 3.8ghz | 4x 4gb G.Skill RipjawZ DDR3-2000 | GTX580 | Win7 x64
Time is the greatest teacher, however it kills every single one of its pupils.
Offline (Unknown gender) The 11th plague of Egypt
Reply #4 Posted on: December 27, 2009, 08:48:21 PM
Member
Joined: Dec 2009
Posts: 284

View Profile
Just a quick thought, would you add some way to declare the size of GML arrays and lists to save up memory?
Or there is already one?
Logged
Offline (Male) Josh @ Dreamland
Reply #5 Posted on: December 27, 2009, 09:18:04 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
Plague:
var a;
a[xsize,ysize]; will work just fine. Or in R3, I believe you may need to add an =0; to that.
Also, you can declare int a[xsize][ysize]; but then the array bounds are non-negotiable and unforgiving.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1
  Print