Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
An unset contract type
Post Body

Is it possible to have an "unset" contract type?

What I'm trying to do is a simple way to allow a contract to be configured to forward to another contract (dynamically). Something like this:

interface BarOverride {
    function getBar() public returns (uint16 _number);
}

contract Foo {
    BarOverride private barOverride;

    function getBar() public returns (uint16 _number) {
        if (barOverride != null) {
            return barOverride.getBar();
        }
        return 123;
    }

    function setBarOverride(address _address) public returns (bool _success) {
        barOverride = BarOverride(_address);
        return true;
    }
}

So here we have a contract that returns 123 anytime getBar is called, but it's possible to "upgrade" it and set a new contract to handle the getBar call, so that a new result could be returned int he future. But since Solidity doesn't have null, I don't know how to express the barOverride != null part.

Author
Account Strength
100%
Account Age
9 years
Verified Email
No
Verified Flair
No
Total Karma
39,538
Link Karma
7,684
Comment Karma
31,854
Profile updated: 2 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago