View Issue Details

IDProjectCategoryView StatusLast Update
0000522Gameplay + OpenGL[All Projects] Featurepublic2017-04-14 10:21
ReporterNash 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Summary0000522: Unable to access fields of a function's return value
Descriptionclass A : ZombieMan
{
    Vector2 v2;

    Vector2 GetVec2(void)
    {
        return v2;
    }

    void DoSomething(void)
    {
        Vector2 cool = GetVec2();

        // not possible
        Vector3 blah = (GetVec2().X, GetVec2().Y, 0.);
    }
}

The above code does not work.
TagsNo tags attached.

Relationships

Activities

Graf Zahl

Graf Zahl

2017-04-02 12:29

administrator   ~0001218

I don't know if the compiler can even do this. To access a field it needs an address but due to how function calls are implemented they do not have one.
Graf Zahl

Graf Zahl

2017-04-14 10:21

administrator   ~0001368

Sorry, but this would be too much of a mess to solve.

Issue History

Date Modified Username Field Change
2017-04-02 05:18 Nash New Issue
2017-04-02 12:29 Graf Zahl Note Added: 0001218
2017-04-14 10:21 Graf Zahl Status new => closed
2017-04-14 10:21 Graf Zahl Resolution open => not fixable
2017-04-14 10:21 Graf Zahl Note Added: 0001368