Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Class metadata for PIR/assembly files

6 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


0 new messages