Skip to content

Commit

Permalink
[dotnet] Add another LHF. Role up, role up. :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 4, 2010
1 parent 82b3bea commit d08fd86
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dotnet/LHF.txt
Expand Up @@ -47,3 +47,17 @@ foundation for getting that in place. To do this:
RakudoObject).
3) Edit Actions.pm and make .WHO use the get_who op (see .WHAT and
.HOW for examples).

Constant Table Dupe Elimination
-------------------------------
DIFFICULTY: Intermediate
SKILLS: NQP
DETAILS:
We have a constant table. This is good. However, in the program:
say("foo");
say("foo");
The "foo" ends up in the constants table twice. This is not good.
Take a look in multi sub dnst_for(PAST::Val $val) { ... } and see
about eliminating the duplication. It happens for integer and
numeric constants too. If you use some weird unique string you can
easily look at x.cs to see it only appears once, not once per usage.

0 comments on commit d08fd86

Please sign in to comment.