<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-01:170128</id>
  <title>bergey</title>
  <subtitle>bergey</subtitle>
  <author>
    <name>bergey</name>
  </author>
  <link rel="alternate" type="text/html" href="https://bergey.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://bergey.dreamwidth.org/data/atom"/>
  <updated>2011-12-01T19:18:15Z</updated>
  <dw:journal username="bergey" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:170128:2427</id>
    <link rel="alternate" type="text/html" href="https://bergey.dreamwidth.org/2427.html"/>
    <link rel="self" type="text/xml" href="https://bergey.dreamwidth.org/data/atom/?itemid=2427"/>
    <title>bergey @ 2011-12-01T13:48:00</title>
    <published>2011-12-01T18:54:54Z</published>
    <updated>2011-12-01T19:18:15Z</updated>
    <category term="code"/>
    <category term="wtf"/>
    <category term="work"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">&lt;p&gt;Today I'm writing code in the worst programming language I've ever seen.  Evidently the function parameters of built-in functions must be constants, not variables.  This doesn't work:
&lt;pre&gt;
Builtin(MyVar)
&lt;/pre&gt;
but this does:
&lt;pre&gt;
if MyVar == 1:
    Builtin(1)
if MyVar == 2:
    Builtin(2)
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;My boss writes "I gave Campbell a rough tine about this when CRbasic first came out.  I had forgotten how frustrated I was that they forced me to do something so obviously inelegant."  So at least I'm in good company.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=bergey&amp;ditemid=2427" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
