Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This code sample no longer works:

    Printer *printer = [[Printer alloc] init];
    if (printer)
    {
        [printer print:hello inExchangeForUSDollars:2.00];
        [printer release];
    }
Because objectivist ideals require that there be no regulation of the free market, I have opened the maximum number of allowable handles to the printer, thereby exhausting the supply (which I now horde). All printer access must now be routed through me. So please use the following code snippet instead, which is the only mechanism by which you can access the printer:

    PrinterMonopoly *printer = [[PrinterMonopoly alloc] init];
    if (printer)
    {
        [printer print:hello inExchangeForUSDollars:99.00];
        [printer release];
    }
Should you attempt to build a printer replacement, I will deny you and your customers access to every other system resource I have similarly horded (you'll probably need a file handle to open the file you want to print, right?) and I will undercut your pricing thereby forcing your bankruptcy after which prices will resume at previous extortionate levels.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: