[Nickle] Bug involving references

Barton C Massey bart at cs.pdx.edu
Fri Jul 8 14:51:41 PDT 2005

Getting a static type error from the code below.

Looks like &val isn't doing the right thing for some
structure values.


-------------- next part --------------
typedef s;
typedef struct {
    &s x;
} s;

s u() {
    s v;

    &v.x = reference(u());
    return v;

s t() {
    s v;

    &v.x = &t();
    return v;

More information about the Nickle mailing list