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

Pragma
Dev Team
Posts: 1078
MSN Messenger - JoshV@zoominternet.net
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
Posts: 101

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

Pragma
Dev Team
Posts: 1078
MSN Messenger - JoshV@zoominternet.net
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
Posts: 56
MSN Messenger - kamikazigames@gmail.com
View Profile Email
Merry Christmas Josh and everyone else :D
Logged
Corei7-930 OC'd @ 3.5ghz | 6gb G.Skill Trident DDR3-1600 | 2x GeForce GTX 260 SLi | Win7 Pro 64-Bit / AcromOS 64-bit / Kubuntu 9.10 64+32-Bit
[GML, PHP/SQL, HTML(XHTML,XML etc)]
Time may be the greatest teacher, however it unfortunately kills all its pupils.
Offline (Male) Fede-lasse
Reply #4 Posted on: December 27, 2009, 08:00:08 AM

AI Programmer
Member
Posts: 185
Warn: 45% (watched)

MSN Messenger - lasse1706@hotmail.com
View Profile Email
Goodnight and have a good time in dreamland :D
Logged
Go to my topic for some nifty tips, and here if you want to see my public folder.
Offline (Unknown gender) The 11th plague of Egypt
Reply #5 Posted on: December 27, 2009, 08:48:21 PM
Member
Posts: 101

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 #6 Posted on: December 27, 2009, 09:18:04 PM

Pragma
Dev Team
Posts: 1078
MSN Messenger - JoshV@zoominternet.net
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