Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Josh @ Dreamland

2401
Announcements / Re: Missed one.
« on: January 15, 2010, 12:38:37 AM »
Also, update.
Some sort of segfault due to skipping an array item manifested in the form of the name of a particular object leaking over into the entirety of the code being parsed. Fixed it.

That leaves me at an odd line in numeric traits that seems to do nothing.
Code: [Select]
  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__max_digits10;

  template<typename _Value>
    const bool __numeric_traits_floating<_Value>::__is_signed;

  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__digits10;

  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__max_exponent10;

Seems to be some sort of implicit instantiation. Easily ignored.

2402
Announcements / Re: Missed one.
« on: January 15, 2010, 12:34:12 AM »
They're pretty sad. I've taken over all the new Macs in the lab, simply because they kept annoying me.
The morons that set them up had it geared so Safari errored every few seconds that it failed to run its prefetched, because they effectively blocked the entire operating system except. these. six. programs. When confronted, they refused to fix it on the grounds that they "don't see it as a problem."
So I finally got sick of it, and now I can authorize things as root. It's apparent I'm more familiar with it than any of them are, but honestly, that's not saying much, and I don't take chances anyway.

Put simply, yeah, that's me.

2403
Announcements / Re: Happy New Year
« on: January 13, 2010, 10:28:32 PM »
Like fucking up my parser. Twice.

2404
Announcements / Re: Missed one.
« on: January 11, 2010, 12:32:57 PM »
Update:
I've fixed that and have moved on. Fixed defaulting constants based on enums in templated types, as well. Created __typeof__, which I believe always returns an atomic type, so I can just define it as int or double. I will be looking into that now.

Fede--
Always closer. Just wish I had an estimate on number of lines left to make it through.

2405
Announcements / Missed one.
« on: January 11, 2010, 12:43:54 AM »
  template<typename _Value>
    const _Value __numeric_traits_integer<_Value>::__min;

Should have seen that coming, really.
Errors it's trying to redeclare that, because the next token is that evil '<'.
Basically, it should just access the instantiation for that type immediately in this case, since it's already declared and all. I'll have to add a check for that come ';', but it'll be fine...

It's 01:00 and I've class tomorrow at some point. Don't worry though, it's an easy enough fix. I'm finally done with those stupid type_trait headers. ^_^

Will edit with results after this file is cleared. (Gave it a quick lookover, seems to be the only error I'll find in it).

Peace.

2406
Announcements / Re: Happy New Year
« on: January 09, 2010, 06:44:11 PM »
Yes, but I wanted them to be able to say
map a;
And have it assume they meant map<variant, variant>.

This whole idea started when Luda bitched he wanted structs in EDL.
It's perfect, when you think about it. GM users have an inefficient way of having a structure (global, and instantiations of bloated-down objects), which Luda has apparently exploited in the past. This way will allow users, any who are willing to read a 150 word manual entry, to declare a structure as efficient as any other.

Also, parsing STL for members removes ambiguity.
string a;
a.length()... that won't even look like a syntax error, because length is a public member of a's type, string.

2407
Announcements / Re: Happy New Year
« on: January 08, 2010, 11:24:50 AM »
The semicolons are it. For custom structures to work, I have to know their names. Otherwise, "map a;" will be a syntax error or will at very least parse incorrectly. Oh, not to mention GCC isn't going to default all the unused parameters to variant for me, no matter how hard I cry.

2408
Announcements / Re: Happy New Year
« on: January 07, 2010, 05:14:23 PM »
I told you, if I'm to be in a gay marriage I at least want it to be polygamist as well.

Also, I want map<>. And stack<>. And anything else C++ has to offer. I Don't want to keep designing files to substitute for headers; I hate that job and as shown on the progress page, I'm bad at it. Serp's right though; I'm unable to settle. Which is why I keep following the loops it throws me for, under the pretense that eventually it will run out of them.

2409
Announcements / Re: Happy New Year
« on: January 07, 2010, 09:37:12 AM »
miky:
Specialization and accessing of templates based on enumerated constants is the latest loop I've been thrown for. They've kept coming.

2410
Announcements / Re: Happy New Year
« on: January 06, 2010, 10:17:11 PM »
Which will be possible thanks to this EVER-CLOSER-DRAWING TO COMPLETION MOTHER FUCKING PARSER.

2411
Off-Topic / Re: Hello I assure Quob
« on: January 05, 2010, 04:02:34 PM »
I think our best bet with this situation is to remove "recaptcha" from the id's of the involved tags >_<"

2412
Announcements / Re: Happy New Year
« on: January 02, 2010, 10:10:39 AM »
kkg--
Correct. The parser will need some testing by the general userbase. I have a file of general GML to run it on, but there are so many new scenarios... It'll be best just to have a bunch of users bombard it with test code while some other C coders and I do more functions.

2413
Announcements / Happy New Year
« on: January 01, 2010, 02:55:36 AM »
And a happy new decade along with that.

I just finished getting cpp_type_traits.h to parse correctly. That's an accomplishment. Along with that, however, is a regular type_traits.h, which I will be attacking next.

I don't want to give a release date after what happened last time, but I realize now that release dates are the only reason releases happen, so I guess I'm going to have to set one before the end of the month. I don't want to name the date I'm fancying now, some may be able to guess, but the rest of you can just not get your hopes up until I see what the rest of STL brings.

Anyway, a happy new year (and decade) to everyone, and quick recovery to some of my drunker friends.

...I can't stay awake much longer.
I thought this was working a minute ago, but evidently it was just something similar.

Code: [Select]
  template<bool, typename>
    struct __enable_if
    { };

  template<typename _Tp>
    struct __enable_if<true, _Tp>
    { _Tp __type; };

Honestly, it'd help to have a list of all template hacks up front. No, not just a reference on templates. A list of these goddamn hacks.

Anyway, good night.

2414
Issues Help Desk / Re: R4... when?
« on: January 01, 2010, 12:58:35 AM »
Score_ was joking. I left it at that because I hate setting release dates; something else always has to be done. However, I'm starting to realize that there's always something else that needs done.

I'm not letting this go much longer. I hate to put an answer in months, but less than two.

2415
Off-Topic / Re: GM8 .gmres
« on: December 31, 2009, 08:33:52 PM »
All I can say is 'wow.' O_o

I'll notify Ism. She may have this documented already, but may find this useful.