summary refs log tree commit diff stats
path: root/lib/std/effecttraits.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-10-03 20:35:21 +0300
committerGitHub <noreply@github.com>2024-10-03 19:35:21 +0200
commit89978b48baeed0c745d45d666a9786c8d9457581 (patch)
treeb5cf3cf90d1913bbf492b09afa3157898555e57b /lib/std/effecttraits.nim
parentd6a71a10671b66ee4f5be09f99234b3d834e7fce (diff)
downloadNim-89978b48baeed0c745d45d666a9786c8d9457581.tar.gz
use cbuilder for seq type generation (#24202)
`addSimpleStruct` is just so the compiler doesn't use so much extra
computation on analyzing the `typ` parameter for `addStruct`, which
doesn't change anything for `seq` types. We could probably still get
away with using `addStruct` instead, or making `addStruct` accept `nil`
as the `typ` argument but this would be even more computation.

There were a lot of hidden issues with `addStruct` being a template &
template argument substitution, so most of the behavior is moved into
`startStruct`/`finishStruct` procs.

This is turning out to be a lot of code for just a couple of changed
lines, we might have to split `cbuilder` into multiple modules.
Diffstat (limited to 'lib/std/effecttraits.nim')
0 files changed, 0 insertions, 0 deletions
: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<HTML>
<HEAD>
<TITLE>Morton Thompson's Turkey Stuffing</TITLE>
</HEAD>
<BODY>
<H1>Morton Thompson's Turkey Stuffing</H1>


<P>From the book "Joe, the Wounded Tennis Player" by Morton Thompson,
adapted by Craig Claiborne in the NY Times.

<P><a href="turkey-long.txt">See the original Morton Thompson version</a>,
including his complicated but wonderful roasting technique.  Don't be too
offended by the sexism in the article; he lived a long time ago.

<PRE>
1 apple, peeled, cored, and diced
1 orange, peeled, seeded, and diced
1 no. 2 can crushed pineapple, drained
rind of one lemon, grated
3 tablespoons chopped preserved ginger
2 five-oz cans water chestnuts, drained and coarsely chopped
2 teaspoons powdered mustard
2 teaspoons caraway seeds
3 teaspoons celery seeds
2 teaspoons poppy seeds
2 1/2 teaspoons oregano
1 crushed bay leaf
1/2 teaspoon mace
1/4 teaspoon ground cloves
1/2 teaspoon turmeric
1/2 teaspoon marjoram
1/2 teaspoon summer savory
1 tablespoon poultry seasoning
3/4 teaspoon sage
3/4 teaspoon thyme
1/2 teaspoon basil
1/2 teaspoon chili powder
1/4 cup finely chopped parsley
5 cloves garlic, finely minced
6 large ribs celery, chopped
4 large onions, peeled and chopped
5 dashes Tabasco sauce
1 tablespoon salt
6 cups fresh bread crumbs, or 3 packages bread crumbs
3/4 pound ground veal
1/2 pound ground fresh pork or sausage
1/4 pound butter
1 16-pound to 20-pound turkey
</PRE>

<P>In one bowl, combine the diced apple, orange, crushed pineapple,
lemon rind, ginger, and chopped water chestnuts.  Mix well.

<P>In a second (huge) bowl, combine all the herbs and spices, the
parsley, garlic, celery, onions, Tabasco, and salt.  Toss well.

<P>Add the remaining ingredients and the contents of the first bowl.
Blend everything well with the fingers.  Stuff the turkey and
skewer it.  Roast according to any standard recipe.  Any leftover
stuffing may be frozen and used later for chickens, ducks, or
another turkey.  [Or just cooked on the stove and mixed in --BH]

<P><ADDRESS>
<A HREF="index.html"><CODE>www.cs.berkeley.edu/~bh</CODE></A>
</ADDRESS>
</BODY>
</HTML>