opC++ Features

opC++ Compiler

opC++ Language

opGames Company

Modifier

modifier

Overview

Modifiers in opC++ bring the well known concept of attributes to C++. Unlike other languages, the implications of using modifiers are completely compile-time related.

Data Modifiers

Data modifiers allow you to tag data members within categories.

example using simple and valued modifiers:

simplemodifier int foo;
valuedmodifier(value) int bar;

Function Modifiers

Function modifiers allow you to tag member functions within categories.

example using simple and valued modifiers:

simplemodifier void foo();
valuedmodifier(value) void bar();

Category Modifiers

Category modifiers allow you to tag whole category definitions.

categorymodifier opclass foo
{
};

Modifier Meaning

Use of modifiers causes code to be generated via dialects and notes.

Recent Changes (All) | Edit SideBar Page last modified on December 01, 2007, at 02:29 PM Edit Page | Page History
Copyright 2010 opGames Inc.