Redirecting References

Prev Next

Introduction


Redirecting References

  a[]     = Hello;
  a[b]    = Hi;

  ref1[]  =^ a[]; // ref1[] references a[]
  echo( ref1[] ); // Hello

  ref1[]  =^ a[b];
  echo( ref1[] ); // Hi

  a[b]    = Ho;   
  echo( ref1[] ); // Ho
Hello
Hi
Ho
Try it yourself: Open LAN_Features_redirecting_references.b4p in B4P_Examples.zip. Decompress before use.