SCRIPT EDITOR BUG: Custom derived structures not appearing in autocomplete.

Started by monkey0506, Tue 11/01/2011 15:21:48

Previous topic - Next topic

monkey0506

For those who didn't get the memo, I don't have a development computer at the moment (but hopefully should have one again in the near future). However, there is something that I noticed that I would like to see addressed regarding the autocomplete.

The built-in structures obviously autocomplete fine, but if you have a custom struct derived from a built-in type it doesn't appear in autocomplete..and any derived structures based on that type also fail to autocomplete:

Code: ags
struct MyStruct // autocompletes fine
{
  // ...
};

struct MyDerivedStruct extends MyStruct // autocompletes fine
{
  // ...
};

struct DerivedFromBuiltInStruct extends Character // does not autocomplete..ever
{
  // ...
};

struct DerivedFromMissingStruct extends DerivedFromBuiltInStruct // does not autocomplete..ever
{
  // ...
};


It would be nice if deriving from built-in structs would autocomplete properly (it compiles and runs fine).

..actually I don't really have any need to derive from a built-in struct right now simply because the way it currently stands there's no way to override the accessor functions for them..so anything marked as readonly would be impossible to set even from an updater function.

Once the engine becomes open-sourced though, I have some plans on ways to make the scripting language more easily extensible..which might involve modifying the behaviour of built-in attributes somewhat. Of course I'd do extensive testing before releasing any such changes, but the ability to override built-in behaviours under controlled situations wouldn't necessarily be a bad thing.

Pumaman

It doesn't make sense to extend a built-in class, because it's not possible to do anything useful by doing so. Therefore I don't think this is a reasonable request.

SMF spam blocked by CleanTalk