Class metadata for PIR/assembly files

0 views
Skip to first unread message

Melvin Smith

unread,
Oct 31, 2003, 1:18:35 AM10/31/03
to dan Sugalski, perl6-i...@perl.org
Regrettably, this won't be committed for 0.0.12 release since it is
definitely new
feature. If I commit now Leo would probably pummel me with flaming pumpkins,
so I'm going to play nice and follow the rules.

This is what I have currently in my working copy of imcc. I think this does
what we want for getting started.

.class MyClass
.field int i
.field int j
.field string s
.method foo
.endclass

.sub _main
print "main\n"
end
.end

.method MyClass::foo
print "MyClass::foo\n"
.end

Dan, I know your example used .member, but I feel like there is
value in separating them into .field and .method. For one, some
high level languages might allow data members and methods with
the same name.

-Melvin


Reply all
Reply to author
Forward
0 new messages